Probably this is a simple question,
Does anyone know how to hide the default axis x labels in boxplot()
in R?
It should be simple, but I search on several sites and on boxplot help but could not find the answer.
こんな感じですか?
d <- data.frame(x = 2, y=1:5)
boxplot(d)
boxplot(d, axes=FALSE) # add axes=FALSE to remove axes
その後、必要に応じて軸を追加できます。
例えば
d <- data.frame(x = 2, y=1:5)
boxplot(d, axes=FALSE)
axis(2, at=1:5, labels=c(rep("whatever I want",5)))
あなたのコメントに従って編集してください:
デフォルトのラベルを削除:
boxplot(d, xaxt="n")