trevorld / ggpattern

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

What are the available pattern names? #92

Closed liuyanguu closed 2 years ago

liuyanguu commented 2 years 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 2 years 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"