我有关于x轴的标签一个问题。 与此相反,以什么在这里讨论:
如何指定实际x轴值绘制为x轴中的R蜱
我绘制含有10列的数据帧。 每一个被在的箱线图表示。 对于x轴我的标签PIPE1直到管10.现在我想改变那些标签比如这样一个特定的ID
windows()
par(mfrow= c(2,1),las=3)
boxplot(output.valid.fast,outline=F, xlab ="Pipes",ylab="RMSE(-)")
axis(1,at=c("Pipe1","Pipe2","Pipe3","Pipe4","Pipe5","Pipe6","Pipe7","Pipe8","Pipe9","Pipe10"),labels=c("1234","2345","3456","4567","5678","6789","78910","891011","9101112","10111213"))
每次我这样做,我收到一个错误揭示了以下内容:
In axis(1, at = c("Pipe1", "Pipe2", "Pipe3", "Pipe4", "Pipe5", "Pipe6", :
NAs introduced by coercion
我做了什么错在这里? 我非常欣赏的提示或建议。 干杯,奥利