lets-plot icon indicating copy to clipboard operation
lets-plot copied to clipboard

Implement the 'stroke' aesthetic.

Open alshan opened this issue 4 years ago • 0 comments

See: http://ggplot2.tidyverse.org/reference/geom_point.html

For shapes that have a border (like 21), you can colour the inside and outside separately. Use the stroke aesthetic to modify the width of the border

ggplot(mtcars, aes(wt, mpg)) +
geom_point(shape = 21, colour = "black", fill = "white", size = 5, stroke = 5)

alshan avatar Feb 15 '21 20:02 alshan