MYaseen208
MYaseen208

Reputation: 23898

Pattern fills for graphs

As ggplot2 produces nice colored graphs but sometimes it is required to have black and white graphs with pattern fills. I wonder how to do this in ggplot2, say for this code:

ggplot(diamonds, aes(cut, fill=cut)) + geom_bar()

Edit

Is there any function in R to do pattern fills for graphs?

Upvotes: 11

Views: 14914

Answers (1)

EDi
EDi

Reputation: 13280

have a look at the 6th plot of example(barplot).

Upvotes: 3

Related Questions