Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 更改xlab";在bayesboot函数的绘图中_R - Fatal编程技术网

R 更改xlab";在bayesboot函数的绘图中

R 更改xlab";在bayesboot函数的绘图中,r,R,方法bayesboot:::plot.bayesboot在内部使用attr(bp,“statistic.label”)asxlab并覆盖您的命令。改变它 plot(bp, ylab = "testY", xlab = "testX") bp plot(bp, ylab = "testY", xlab = "testX") bp <- bayesboot::bayesboot(dat$too, mean)

方法
bayesboot:::plot.bayesboot
在内部使用
attr(bp,“statistic.label”)
as
xlab
并覆盖您的命令。改变它

plot(bp, ylab = "testY", xlab = "testX")
bp
plot(bp, ylab = "testY", xlab = "testX")
bp <- bayesboot::bayesboot(dat$too, mean) 
attr(bp, "statistic.label") <- "testX"
plot(bp, ylab="testY")