假设默认情况下我更喜欢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)
但我不知道如何更改默认行为。
