In ggplot I want to make the geom_point
s bigger overall when they are in an aes. For example:
ggplot(diamonds %>% head(30))
geom_point(aes(x = cut, y=color, size=carat))
Gives exactly the same plot as
ggplot(diamonds %>% head(30))
geom_point(aes(x = cut, y=color, size=10*carat))
You can do this outside the aes, but it doesn't work within
ggplot(diamonds %>% head(30))
geom_point(aes(x = cut, y=color), size=10))
CodePudding user response:
From @teunbrand comment:
ggplot(diamonds %>% head(30))
geom_point(aes(x = cut, y=color, size=carat))
scale_size(range = c(0, 40))