My wish: fill the circles with the color from
scale_color so that I only have one single legend instead of two. Would it be possible? Thank you!
library(ggplot2) p <- ggplot(mtcars, aes(wt, mpg))
Circles with only one color (what is wrong at the edges of the circles by the way?)
p + geom_point(aes(size = qsec), alpha = 0.7) + scale_size_continuous(range = c(1, 15))
Change the color but now I have two legends
p + geom_point(aes(size = qsec, fill = qsec), shape = 21, alpha = 0.7) + scale_fill_viridis_c() + scale_size_continuous(range = c(1, 15))