2017-02-22 131 views
0

我需要做一些事情来获得更多的Y轴上的刻度,如下图所示,但我没有设法做到这一点。任何帮助将不胜感激! 这远远我已经输入:调整Y轴上的刻度线数,barplot()在R

Temp<-table(airquality$Temp) 
barplot(Temp, col = "red", border = "blue",xpd = FALSE) 
+1

也许'barplot(温度,列= “red”,border =“blue”,xpd = FALSE,yaxp = c(0,12,12))'也添加标签。 – lmo

回答

0

如果你只是想蜱和无标签,你可以使用axisseqlabels=FALSE

Temp<-table(airquality$Temp) 
barplot(Temp, col = "red", border = "blue",xpd = FALSE) 
axis(2,at=seq(range(Temp)[1],range(Temp)[2],by=1),labels=FALSE) 

enter image description here