Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pattern fills for graphs

Tags:

r

ggplot2

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?

like image 650
MYaseen208 Avatar asked Sep 30 '11 00:09

MYaseen208


People also ask

How do you fill a chart pattern?

To see this at work select a chart and choose Chart Tools > Layout Tab and select the series to edit from the dropdown box at the top left of the ribbon. Choose Format Selection (just below this on the ribbon) and choose Fill > Pattern Fill.

What is pattern filling?

A full-color pattern fill (also known as “vector pattern”) is a more complex vector graphic that can be composed of lines and fills. A full-color fill can have color or transparent background. A bitmap pattern fill is a bitmap image whose complexity is determined by its size, image resolution, and bit depth.

How do I fill a pattern in Excel?

Apply a pattern or fill effectsClick Home > Format Cells dialog launcher, or press Ctrl+Shift+F. On the Fill tab, under Background Color, pick the color you want. To use a pattern with two colors, pick a color in the Pattern Color box, and then pick a pattern in the Pattern Style box.


1 Answers

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

like image 83
EDi Avatar answered Dec 13 '22 01:12

EDi