知道为什么会这样吗?颠倒图例的顺序会大大改变它。
ggplot(mtcars, aes(x = disp, y = mpg, colour = disp, size = disp)) +
geom_point() +
scale_colour_distiller(palette = "PuOr") +
guides(size = FALSE)
ggplot(mtcars, aes(x = disp, y = mpg, colour = disp, size = disp)) +
geom_point() +
scale_colour_distiller(palette = "PuOr") +
guides(size = FALSE, colour = guide_legend(reverse = TRUE))