2016-04-24 57 views
0

我試圖讓與1個蜱逐步增加,目前它看起來像這樣:Y軸的增量增長,標誌着

enter image description here

然而,當我嘗試添加axis拿到1逐步增加我得到:

axis(2, at=seq(0, 16, 1)) 

它看起來像這樣,不都不好看:

enter image description here

+0

所有標籤沒有足夠的空間。使用更小的字體或更少的標籤 –

+0

如何更改爲更小的字體?因爲我需要它增加1. – user3580316

+1

在繪製圖之前運行'par(cex.axis = .5)',或者繪製軸(4,cex.axis = .5) –

回答

2

我會做一些改變。

  1. 讓你縮小字體:cex.axis=0.9
  2. 旋轉數90度:las=1
  3. 只有情節偶數

其中給出

par(cex.axis=0.9, las=1) 
plot(0:16, axes=FALSE) 
axis(2, seq(0, 16, 2), seq(0, 16, 2)) 

enter image description here