是否可以使用主题操纵ggplot中虚线和虚线网格线的间距和大小?以下情节:
p + l + opts(panel.grid.major = theme_line(colour = 'black', linetype = 'dashed'),
panel.grid.minor = theme_line(colour = NA),
panel.background = theme_rect(colour = 'white'))
Run Code Online (Sandbox Code Playgroud)
我想在虚线和虚线网格线之间更改间距(例如在Illustrator中).
另外,有人知道x轴和y轴网格线是否可以单独操作?例如,我想在此示例中关闭x轴网格线.
我已经看到使用vline和hline进行操作(使用ggplot 在某些x轴值上添加虚线垂直线),但是如果可能的话,不希望每次都有硬编码.
