R绘制边距和虚线y轴
答
关于第一个问题,你可以使用axis
,例如:
> plot(1:10, axes=FALSE) ### to not plot the default ones
> axis(1,lty='dashed',lwd=3)
> axis(2,lty=3,lwd=2)
第二部分是不明确的。您不能在布局命令中指定页边距。
EDIT设置情节的外边缘。
默认情况下,页面上没有外边距。使用oma图形状态设置指定的外边距可以是 。这包括四个数值为 的顺序中的四个页边空白(底部,左侧,顶部,右侧)和值与单位线。
例如:
old.oma <- par(oma=c(5,5,0,1)) #bottom 5 lines,left 5lines,right 1line
感谢您的明确回应。我的猜测是,整个图表边距可以在布局中指定。如果不是,你能指导我到哪里我可以找到他们吗? – Andy 2013-02-28 04:23:54
@Django它不清楚,但我想你想修改你的情节周围的边界。你看到'par('oma'),par('omd')'.. – agstudy 2013-02-28 04:28:19
正是我在找的谢谢:) – Andy 2013-02-28 04:33:40