簡體   English   中英

調整y軸上的刻度數,R中的barplot()

[英]Adjust the number of ticks on y axis, barplot() in R

我需要做一些事情來使y軸上的滴答聲更多,如下圖所示,但我沒有設法做到這一點。 任何幫助將不勝感激! 到目前為止,我已經輸入:

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

如果只需要刻度線並且沒有標簽,則可以將axisseq一起使用,並且labels=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)

在此處輸入圖片說明

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM