Conceptually I thought a point would be dimensionless but I saw in the documentation that geom_point
actually takes the aesthetic fill
. However it doesn't seem to work for me:
ggplot(data = mtcars) + geom_point(aes(mpg, disp, fill = carb))
The aesthetics seems to be ignored, by I would expect a warning similarly to geom_line
:
ggplot(data = mtcars) + geom_line(aes(mpg, disp, fill = carb))
Warning: Ignoring unknown aesthetics: fill