Re: [R] Boxplot position on X-axis relative to it's value

2010-05-12 Thread Felix Andrews
Dennis, this works for me: xyplot(nmgml ~ day, data = girafe, horizontal = FALSE, panel = function(...) { panel.bwplot(...) panel.average(..., fun = median, col.line = 'gray30') } ) On 13 May 2010 06:29, Dennis Murphy wrote: > Hi: > > Here are a couple of

Re: [R] Boxplot position on X-axis relative to it's value

2010-05-12 Thread Dennis Murphy
Hi: Here are a couple of ways to superimpose the boxplots with a line, using lattice and latticeExtra. Notice that the boxplots are located at the observed x values - the idea comes straight out of the example on p. 183 of the Lattice book. library(lattice) library(latticeExtra) # Connect the me

Re: [R] Boxplot position on X-axis relative to it's value

2010-05-12 Thread Henrique Dallazuanna
One option could be: # Using Richard's example boxplot(nmgml ~ factor(day, levels = do.call(seq, as.list(range(girafe$day, data = girafe, xaxt = 'n') axis(1, at = unique(girafe$day)) On Wed, May 12, 2010 at 10:30 AM, Mächler Marc Jaques wrote: > Dear R-Experts. > > I collected diffe

Re: [R] Boxplot position on X-axis relative to it's value

2010-05-12 Thread RICHARD M. HEIBERGER
You can use the bwplot panel in the HH package. You might need to install HH first, by uncommenting the line below. girafe.txt <- textConnection( " day nmgml 1 29 2.72655 2 29 2.48820 3 15 2.85945 4 15 2.58915 5 15 2.88345 6 15 2.66675 7 47 3.29125 8 15 2.44085 9 29 2.43065

[R] Boxplot position on X-axis relative to it's value

2010-05-12 Thread Mächler Marc Jaques
Dear R-Experts. I collected different datas about Nitrogen content (mg/ml) in Dung. The dung was eighter fresh (day=0) or had different ages (15,29,47) to observe nutrient changes over time. Now I like to draw a boxplot. boxplot(nmgml~day) abline((nmgml~day) The Problem is, that the boxplot c