[R] controlling colour in Trellis histogram
John Fox
jfox at mcmaster.ca
Fri Oct 1 16:47:07 CEST 2004
Dear bill,
Try opening the Trellis graphics device with trellis.device(color=FALSE).
I hope this helps,
John
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Bill Shipley
> Sent: Friday, October 01, 2004 9:17 AM
> To: R help list
> Subject: [R] controlling colour in Trellis histogram
>
> Hello. I am sorry for posting a (seemingly) simple question,
> but I have just spent 2 hours trying to find the answer,
> without success. I want to make a histogram with
> conditioning on a factor, using Trellis graphics. However, I
> do not want any colours (only black and white) either in the
> histograms or in the strip. There must be some simple
> argument but I canÂt find it. Here is my code so far:
>
>
>
> > histogram(~GRC.SLA|as.factor(species.type),data=group.means,
>
> + strip=function(...)
>
> +
> strip.default(...,style=1,factor.levels=c("Conifers","Trees","
Herbs","Mo
> nocots")))
>
>
>
> As a default, this produces the bars in a pale blue and the
> strip in orange-yellow.
>
>
>
> Thanks.
>
>
>
> Bill Shipley
>
> Subject Matter Editor, Ecology
>
> North American Editor, Annals of Botany
>
> Département de biologie, Université de Sherbrooke,
>
> Sherbrooke (Québec) J1K 2R1 CANADA
>
> Bill.Shipley at USherbrooke.ca
>
> <http://callisto.si.usherb.ca:8080/bshipley/>
> http://callisto.si.usherb.ca:8080/bshipley/
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list