alexru
R 中怎样设置坐标轴刻度啊,主刻度和次刻度?多谢
rtist
?axis
alexru
谢谢,刚自己查到了
jzhang04
想起个问题
怎么使x轴和y轴的坐标原点重合?
如:plot(0:100,0:100)
坐标原点0是分开的。
谢谢!
rtist
plot(0:100,0:100,xaxs="i",yaxs="i",xlim=c(0,100),ylim=c(0,100))
abel
rtist好记性啊。
'xaxs' The style of axis interval calculation to be used for the
x-axis. Possible values are '"r"', '"i"', '"e"', '"s"',
'"d"'. The styles are generally controlled by the range of
data or 'xlim', if given. Style '"r"' (regular) first extends
the data range by 4 percent and then finds an axis with
pretty labels that fits within the range. Style '"i"'
(internal) just finds an axis with pretty labels that fits
within the original data range. Style '"s"' (standard) finds
an axis with pretty labels within which the original data
range fits. Style '"e"' (extended) is like style '"s"',
except that it is also ensures that there is room for
plotting symbols within the bounding box. Style '"d"'
(direct) specifies that the current axis should be used on
subsequent plots. (_Only '"r"' and '"i"' styles are currently
implemented_)
作图多参考下par吧
反正我从来都记不得这么多参数以及具体选项的含义,只好多多使用help了
rtist
不是啊,我也是总看help的。。。