【发布时间】:2013-01-07 13:17:00
【问题描述】:
假设我希望 geom_point 默认使用圆圈 (pch=1) 而不是实心圆点 (pch=16)。您可以通过将shape 参数传递给geom_point 来更改标记的形状,例如
ggplot(diamonds, aes(depth, carat, colour=cut)) + geom_point(shape=1)
ggplot(diamonds, aes(depth, carat, colour=cut)) + geom_point(shape=16)
但我不知道如何更改默认行为。
【问题讨论】:
标签: r ggplot2 default aesthetics