Hi everybody,
I read this topic : Stripe Pattern in ggplot2 legend - #2 by ibertchen
I would like to do the same thing but with different patterns rather than strips lines. How can I get one empty pattern, one with lines and one full?
Thanks
Hi everybody,
I read this topic : Stripe Pattern in ggplot2 legend - #2 by ibertchen
I would like to do the same thing but with different patterns rather than strips lines. How can I get one empty pattern, one with lines and one full?
Thanks
library(tidyverse)
library(ggpattern)
ggplot(data.frame(x=1:3,
y=1:3,
fill=factor(1:3))) +
aes(x=x,
y=y,
fill=fill) + geom_col_pattern(pattern=c("none","stripe","none"),color="black",size=3) +
scale_fill_manual( values=c("transparent", "red","yellow"))
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.