trevorld / gridpattern

'grid' Pattern Grobs
https://trevorldavis.com/R/gridpattern/dev
Other
30 stars 1 forks source link

Change density in ggpattern plots #66

Closed mellisbirds closed 11 months ago

mellisbirds commented 11 months ago

Hi,

Very fun package. Do you have any tips for changing polygon tiling density in plots produced with ggpattern? I haven't been able to find a way to make tiles larger or smaller using gridpattern's density argument or ggpattern's pattern_density argument.

Thanks! Mike

trevorld commented 11 months ago

For the polygon_tiling pattern you should use pattern_spacing to make the polygons bigger or smaller. For that pattern we auto-set the density for each component subpattern so that the polygons tile so it isn't a user-settable parameter... https://trevorldavis.com/R/gridpattern/reference/grid.pattern_polygon_tiling.html

On Sat, Jul 29, 2023, 9:02 AM Mike Ellis @.***> wrote:

Hi,

Very fun package. Do you have any tips for changing polygon tiling density in plots produced with ggpattern? I haven't been able to find a way to make tiles larger or smaller using gridpattern's density argument or ggpattern's pattern_density argument.

Thanks! Mike

— Reply to this email directly, view it on GitHub https://github.com/trevorld/gridpattern/issues/66, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASSB2Y6NCY7DKUT6KGDMDTXSROJXANCNFSM6AAAAAA24ERJEA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mellisbirds commented 11 months ago

Thanks! That did the trick.