在这两个图中,点看起来不同,但为什么呢?
mya <- data.frame(a=1:100)
ggplot() +
geom_path(data=mya, aes(x=a, y=a, colour=2, size=seq(0.1,10,0.1))) +
geom_point(data=mya, aes(x=a, y=a, colour=1, size=1)) +
theme_bw() +
theme(text=element_text(size=11))
ggplot() +
geom_path(data=mya, aes(x=a, y=a, colour=2, size=1)) +
geom_point(data=mya, aes(x=a, y=a, colour=1, size=1)) +
theme_bw() +
theme(text=element_text(size=11))
?aes_linetype_size_shape
解释...
# Size examples
# Should be specified with a numerical value (in millimetres),
# or from a variable source
但在我的代码中,它看起来不同。