vendredi 17 novembre 2023

How can I add pattern in only one color ggplot?

How can I manually choose colors to my pallete and also create a pattern in only one color? (I want transparent to be white color with some lines to differentiate from white color).

ggplot(mp8, aes(x = total, y = shape, fill = color)) +
geom_col(position = "fill") +
geom_col(colour = "black", position = "fill") +
scale_x_continuous(labels = scales::percent) +
coord_flip()

ggplot

Aucun commentaire:

Enregistrer un commentaire