R图中的网格 [英] Grid in an R plot
本文介绍了R图中的网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否存在用于轻松将网格添加到R图的命令?
Is there a command to easily add a grid onto an R plot?
推荐答案
如果不使用自定义刻度间隔,则可以直接通过plot()
命令控制网格和轴参数:
If you are not using a custom tick interval, you can control the grid and axes parameters directly from the plot()
command:
plot(cumsum(rnorm(100)), type='l', panel.first=grid())
plot.default()
文档提供了有关这些参数的更多信息.
The plot.default()
documentation provides more information about these parameters.
这篇关于R图中的网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文