[R] checker/chequer board pattern as a colour

Federico Calboli f.calboli at imperial.ac.uk
Mon Jan 7 22:56:45 CET 2013


On 7 Jan 2013, at 21:53, Greg Snow <538280 at gmail.com> wrote:

> Not as a simple color, but you can use the rasterImage function to add a rectangle with a checkerboard pattern to a an existing plot, the examples for the function use a simple checkerboard pattern.  
> 
> Be careful of overusing something like this, too many patterned areas in a plot can be more distracting and distorting than useful.

thanks, but that sounds way too much hassle than it's worth

BW


F




> 
> 
> On Mon, Jan 7, 2013 at 8:00 AM, Federico Calboli <f.calboli at imperial.ac.uk> wrote:
> Hi All,
> 
> is there a reasonably simple way of using a black and white chequer/checker board pattern as a colour:
> 
> barplot(mydata, col = c('red', 'blue' 'checkerboard'))
> 
> ?
> 
> BW
> 
> F
> 
> --
> Federico C. F. Calboli
> Neuroepidemiology and Ageing Research
> Imperial College, St. Mary's Campus
> Norfolk Place, London W2 1PG
> 
> Tel +44 (0)20 75941602   Fax +44 (0)20 75943193
> 
> f.calboli [.a.t] imperial.ac.uk
> f.calboli [.a.t] gmail.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


--
Federico C. F. Calboli
Neuroepidemiology and Ageing Research
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG

Tel +44 (0)20 75941602   Fax +44 (0)20 75943193

f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com




More information about the R-help mailing list