1 Matching Annotations
  1. Aug 2021
    1. 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)