作者isanotherday (another day)
看板Statistics
標題[問題] 請問R/S-plus繪圖
時間Fri Mar 7 23:59:12 2008
請問要如何固定 x 軸的座標點
例如,我輸入plot(x,y),結果 x 軸是0,2,4,6,8
但我希望的 x 軸是0,1,2,3,4,5,6,7,8,9
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 134.192.132.21
1F:→ isanotherday:找到了,輸入axis(1,c(1,3,5,7,9)) 03/08 00:05
2F:推 bugle:樓上要自己找點,不是很建議 03/08 00:13
3F:→ bugle:plot(rnorm(10),xaxp=c(1,10,9)) #從1到10打9個點 03/08 00:14