[R] Lattice box percentile plot

From: Mr Derik <mr418_at_cam.ac.uk>
Date: Fri, 16 May 2008 06:21:06 -0700 (PDT)

Dear Nabble.

I am trying to draw a box percentile plot with trellis using the panel in Hmisc. I really want to colour the plots in. I can alter several of features of the plot by changing the trellis par settings but I just can’t fill the shape in.

Here is some example code which alters line colour and dot symbol:

require(lattice)
require(Hmisc)
A<-c(rnorm(100,50,2),rnorm(100,60,5),rnorm(100,55,7)) B<-rep(c(1,2,3),each=100)

trellis.par.set(list(box.rectangle=list(col="black")))
trellis.par.set(list(box.umbrella=list(col="black")))
trellis.par.set(list(box.dot=list(pch=3,col="red")))

bwplot(B~A,panel=panel.bpplot, probs=seq(.01,.49,by=.01))

I’d really appreciate it if someone could tell me how to change the fill colour as well as it is driving me mad.

Chears.

-- 
View this message in context: http://www.nabble.com/Lattice-box-percentile-plot-tp17274559p17274559.html
Sent from the R help mailing list archive at Nabble.com.

	[[alternative HTML version deleted]]


______________________________________________ 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.

Received on Fri 16 May 2008 - 13:31:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 16 May 2008 - 15:30:37 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive