trevorld / ggpattern

ggplot geoms with pattern fills
https://trevorldavis.com/R/ggpattern/dev/
Other
356 stars 18 forks source link

What are the available pattern names? #92

Closed liuyanguu closed 1 year ago

liuyanguu commented 1 year ago

Thanks for the very helpful package. Sorry this is a basic question but it's not so straightforward to figure out what are the available patterns when I am using scale_pattern_manual(values = c("circle", "stripe")) What are the available values beside stripe and circle?

trevorld commented 1 year ago

All patterns from {gridpattern} are available (plus any custom patterns you may have defined): https://trevorldavis.com/R/gridpattern/dev

gridpattern::names_pattern
 [1] "ambient"         "circle"          "crosshatch"      "gradient"       
 [5] "image"           "magick"          "none"            "pch"            
 [9] "placeholder"     "plasma"          "polygon_tiling"  "regular_polygon"
[13] "rose"            "stripe"          "text"            "wave"           
[17] "weave"