Is it possible to fill the boxes of a boxplot with filling patterns/texture instead of colours? Or both mixed? (for example white, grey, left diagonal striped, right diagonal striped) How can I do that? I searched here, but didn't find an answer. Thank you! -- View this message in context: http://r.789695.n4.nabble.com/Fill-pattern-for-Boxplots-tp4639698.html Sent from the R help mailing list archive at Nabble.com.
Probably not. See http://r.789695.n4.nabble.com/Boxplot-Fill-Pattern-td4457209.html on this topic. What exactly are you doing? There may be a workaround or alternative. John Kane Kingston ON Canada> -----Original Message----- > From: meyfarth at uni-potsdam.de > Sent: Wed, 8 Aug 2012 16:56:05 -0700 (PDT) > To: r-help at r-project.org > Subject: [R] Fill pattern for Boxplots? > > Is it possible to fill the boxes of a boxplot with filling > patterns/texture > instead of colours? Or both mixed? (for example white, grey, left > diagonal > striped, right diagonal striped) How can I do that? I searched here, but > didn't find an answer. > Thank you! > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Fill-pattern-for-Boxplots-tp4639698.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.____________________________________________________________ FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit http://www.inbox.com/photosharing to find out more!
You might want to have a look at RColorBrewer. If I remember correctly some of their palettes should work better than a standard R greyscale but I must admit I have not tried them. http://www.decisionstats.com/color-palettes-in-r-using-rcolorbrewer-rstats/ for a start. John Kane Kingston ON Canada> -----Original Message----- > From: meyfarth at uni-potsdam.de > Sent: Thu, 09 Aug 2012 19:07:43 +0200 > To: jrkrideau at inbox.com > Subject: Re: [R] Fill pattern for Boxplots? > > Thank you. I saw these postings, but I don't want to learn lattice for > this reason (was afraid to have to change then everything else in my > graph). Anyway, I now tried with different shades of greyscale (4 > shades). I'm not fully satisfied with it, but it's ok. It's for a > publication and depending on whether I have to change the graph, I > decide to either put texture in some boxes manually or still look for a > solution in R. > > > --------Original Message---------- > From: John Kane <jrkrideau at inbox.com> > To: suse <meyfarth at uni-potsdam.de>, r-help at r-project.org > Date: 09.08.2012 16:52 > Subject: Re: [R] Fill pattern for Boxplots? >> Probably not. See >> http://r.789695.n4.nabble.com/Boxplot-Fill-Pattern-td4457209.html on >> this topic. >> >> What exactly are you doing? There may be a workaround or alternative. >> >> John Kane >> Kingston ON Canada >> >>____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
The fill patterns date back to when the main way to get quality graphs was using a pen plotter. Filling a rectangle with color using a pen plotter took a long time and often resulted a soggy hole in the paper, so the fill lines were preferred back then. Now with high resolution screens and printers it is easy to do the flood fill rather than the patterns. You need to be careful with the fill patterns, they can end up causing moire effects (http://en.wikipedia.org/wiki/Moir%C3%A9_pattern) which can cause false impressions of movement or distortions of size. On Wed, Aug 8, 2012 at 5:56 PM, suse <meyfarth at uni-potsdam.de> wrote:> Is it possible to fill the boxes of a boxplot with filling patterns/texture > instead of colours? Or both mixed? (for example white, grey, left diagonal > striped, right diagonal striped) How can I do that? I searched here, but > didn't find an answer. > Thank you! > > > > -- > View this message in context: http://r.789695.n4.nabble.com/Fill-pattern-for-Boxplots-tp4639698.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Gregory (Greg) L. Snow Ph.D. 538280 at gmail.com