ggpattern icon indicating copy to clipboard operation
ggpattern copied to clipboard

`geom_circle_pattern()`

Open Henryjean opened this issue 4 years ago • 3 comments

Would love a way to fill in a geom_point with an image of my choice.

Effectively, what I'd like to be to do is re-create a chart like this one:

image

Each point on the chart would correspond to a different image url in my dataframe, which is then used to fill in the circle.

I can kind of do this with geom_polygon_pattern() but it'd be nice if I didn't have to draw the circle first

Henryjean avatar Oct 20 '21 15:10 Henryjean

Note to self (or future code submitter) - geom_circle from {ggforce} is probably the ideal candidate for adaptation.

https://cran.r-project.org/package=ggforce

coolbutuseless avatar Nov 03 '21 09:11 coolbutuseless

Although we'd still welcome a PR that adds a geom_circle_pattern() to {ggpattern} in the future it may be possible to directly use pattern/gradient fills with ggforce::geom_circle(): https://github.com/thomasp85/ggforce/issues/323

trevorld avatar Apr 24 '24 18:04 trevorld