ggtextures icon indicating copy to clipboard operation
ggtextures copied to clipboard

Simple dotted pattern (feature request)

Open DanChaltiel opened this issue 5 years ago • 4 comments

Hi,

First, thanks for this great package!

I wondered if there was a way to tweak your geoms in order to add "simple" patterns like the dotted one (similar to the dotted texture in MS Excel).

For now, it does not seem possible to use a non-image as a pattern, I tried to tweak it myself but I do not master ggplot prototypes enough yet.

Do you think this is something addable to your package?

DanChaltiel avatar Feb 04 '20 10:02 DanChaltiel

I'm also interested on this. I thought of drawing my own patterns as svg files and then load them. Haven't had the time to try it yet, but it should do the trick I guess. It's a shame such a powerful tool as ggplot2 cannot do this simple things :(

jpm92 avatar Apr 22 '20 18:04 jpm92

Or even simple cross lines or grid lines or other liney patterns like these. These should be controllable via aesthetics so they can be set to a varying factor column. Kinda like how linetype is an aes.

barrel0luck avatar Oct 01 '20 06:10 barrel0luck

I suggest you look into ggpattern: https://github.com/coolbutuseless/ggpattern

clauswilke avatar Oct 01 '20 15:10 clauswilke

I've tried to add patterns to stat_summary using that package, and I can't. I like to use stat_summary a lot, so that I'm plotting all the data as well as the summarized data. So until a patterning package can integrate well with existing ggplot objects, I really can't use it...

barrel0luck avatar Oct 02 '20 03:10 barrel0luck