On 4/1/06, Fredrik Karlsson <[EMAIL PROTECTED]> wrote:
> Dear list,
>
> I am trying to plot a barchart (from lattice) in B & W, with 10
> categories per bar.
> It seems that the colours are recycled after reachingcategory number
> 7, which creates a problem interpreting the chart. I therefore have
> two questions:
>
> 1) How do I get more shades?
Use the col argument:
barchart(site ~ yield | year, data = barley, groups = variety,
stack = TRUE, auto.key = TRUE, col = gray.colors(10))
or change the appropriate settings (the name of which is different in
R 2.2.x and 2.3.x, but see show.settings() in either case).
Deepayan
--
http://www.stat.wisc.edu/~deepayan/
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html