1 Matching Annotations
- Aug 2021
-
jrnold.github.io jrnold.github.io
-
ggplot(mpg, aes(x = displ, y = hwy)) + geom_point(size = 4, color = "white") + geom_point(aes(colour = drv))
Another solution, that evades plotting the points twice, would be the following:
ggplot(mpg, aes(x = displ, y = hwy, fill = drv)) + geom_point(color = "white", shape = 21, size = 3, stroke = 2)
-