Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-02 Thread Petr Pikal
[EMAIL PROTECTED] Copies to: R-help@stat.math.ethz.ch Subject:Re: [R] Impaired boxplot functionality - mean instead of median Send reply to: Martin Maechler [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] {diverted back

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-02 Thread Frank E Harrell Jr
Evgeniy Kachalin wrote: Frank E Harrell Jr пишет: Evgeniy Kachalin wrote: Marc Schwartz (via MN) пишет: Marc Schwartz (via MN) пишет: library(Hmisc) library(lattice) ?panel.bpplot bwplot(, panel=panel.bpplot) By default, panel.bpplot shows the mean (dot) and median (line)

[R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Evgeniy Kachalin
Hello to all users and wizards. I am regulary using 'boxplot' function or its analogue - 'bwplot' from the 'lattice' library. But they are, as far as I understand, totally flawed in functionality: they miss ability to select what they would draw 'in the middle' - median, mean. What the box

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Martin Maechler
Boxplots were invented by John W. Tukey and I think should be counted among the top small but smart achievements from the 20th century. Very wisely he did *not* use mean and standard deviations. Even though it's possible to draw boxplots that are not boxplots (and people only recently explained

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Jean-Christophe BOUETTE
I'm no wizard but looking at ?boxplot I think you should try ?bxp. HTH, Jean-Christophe. 2005/12/1, Evgeniy Kachalin [EMAIL PROTECTED]: Hello to all users and wizards. I am regulary using 'boxplot' function or its analogue - 'bwplot' from the 'lattice' library. But they are, as far as I

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Evgeniy Kachalin
Martin Maechler пишет: Boxplots were invented by John W. Tukey and I think should be counted among the top small but smart achievements from the 20th century. Very wisely he did *not* use mean and standard deviations. Even though it's possible to draw boxplots that are not boxplots (and

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread P Ehlers
I'd like to add two comments to Martin's sensible response. 1. I've seen several intro-stats textbooks that define a boxplot to have whiskers to the extreme data values and then define Tukey's boxplot as a modified boxplot. I wish authors wouldn't do that. 2. I've also seen boxplots used for

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Gabor Grothendieck
On 12/1/05, Evgeniy Kachalin [EMAIL PROTECTED] wrote: Martin Maechler пишет: Boxplots were invented by John W. Tukey and I think should be counted among the top small but smart achievements from the 20th century. Very wisely he did *not* use mean and standard deviations. Even though

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Marc Schwartz (via MN)
On Thu, 2005-12-01 at 19:40 +0300, Evgeniy Kachalin wrote: Martin Maechler пишет: Boxplots were invented by John W. Tukey and I think should be counted among the top small but smart achievements from the 20th century. Very wisely he did *not* use mean and standard deviations. Even

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Michael H. Prager
All-- Would someone kindly post the reference to Tukey's formula for a boxplot without whiskers? I am looking at his book Exploratory Data Analysis from 1977. The index includes box-and-whisker plot but not boxplot. On page 39-40 construction of the plot is described, including the

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Berton Gunter
PROTECTED] On Behalf Of Michael H. Prager Sent: Thursday, December 01, 2005 10:11 AM To: r-help@stat.math.ethz.ch Subject: Re: [R] Impaired boxplot functionality - mean instead of median All-- Would someone kindly post the reference to Tukey's formula for a boxplot without whiskers? I

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Evgeniy Kachalin
Marc Schwartz (via MN) пишет: On Thu, 2005-12-01 at 19:40 +0300, Evgeniy Kachalin wrote: Martin Maechler пишет: So I analize genetics data. I have some factor (gene variant, c(1,2,3)) and the quantitative variable corresponding to that factor. How do I visualize this situation? Compare mean of

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Marc Schwartz (via MN)
Marc Schwartz (via MN) пишет: On Thu, 2005-12-01 at 19:40 +0300, Evgeniy Kachalin wrote: Martin Maechler пишет: So I analize genetics data. I have some factor (gene variant, c(1,2,3)) and the quantitative variable corresponding to that factor. How do I visualize this situation?

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Evgeniy Kachalin
Marc Schwartz (via MN) пишет: Marc Schwartz (via MN) пишет: So plotmeans is incapable of: boxplot(numerical~fact1+fact2). Is there any way further? I think that somehow we are talking past each other here. plotmeans() does what it is designed to do, which is to simplify the process of

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Wiener, Matthew
: Thursday, December 01, 2005 3:37 PM To: r-help@stat.math.ethz.ch Subject: Re: [R] Impaired boxplot functionality - mean instead of median Marc Schwartz (via MN) пишет: Marc Schwartz (via MN) пишет: So plotmeans is incapable of: boxplot(numerical~fact1+fact2). Is there any way further? I think

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Frank E Harrell Jr
Evgeniy Kachalin wrote: Marc Schwartz (via MN) пишет: Marc Schwartz (via MN) пишет: So plotmeans is incapable of: boxplot(numerical~fact1+fact2). Is there any way further? I think that somehow we are talking past each other here. plotmeans() does what it is designed to do, which is to

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Marc Schwartz (via MN)
On Thu, 2005-12-01 at 23:27 +0300, Evgeniy Kachalin wrote: Marc Schwartz (via MN) пишет: Marc Schwartz (via MN) пишет: So plotmeans is incapable of: boxplot(numerical~fact1+fact2). Is there any way further? I think that somehow we are talking past each other here. plotmeans()

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Evgeniy Kachalin
Frank E Harrell Jr пишет: Evgeniy Kachalin wrote: Marc Schwartz (via MN) пишет: Marc Schwartz (via MN) пишет: library(Hmisc) library(lattice) ?panel.bpplot bwplot(, panel=panel.bpplot) By default, panel.bpplot shows the mean (dot) and median (line) plus several quantiles.

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Evgeniy Kachalin
Wiener, Matthew пишет: interaction(A, B) will create a single factor made up of the combinations of the two factors A and B. Perhaps that would let you use plotmeans. Hope this helps, Matt Wiener So you think plotmeans(num~interaction(A,B)) will work? How? There is NO 'num' data for a.d,

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Kjetil Brinchmann Halvorsen
P Ehlers wrote: I'd like to add two comments to Martin's sensible response. 1. I've seen several intro-stats textbooks that define a boxplot to have whiskers to the extreme data values and then define Tukey's boxplot as a modified boxplot. I wish authors wouldn't do that. 2. I've also

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread P Ehlers
Kjetil Brinchmann Halvorsen wrote: P Ehlers wrote: I'd like to add two comments to Martin's sensible response. 1. I've seen several intro-stats textbooks that define a boxplot to have whiskers to the extreme data values and then define Tukey's boxplot as a modified boxplot. I wish

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Austin, Matt
@stat.math.ethz.ch Subject: Re: [R] Impaired boxplot functionality - mean instead of median Frank E Harrell Jr пишет: Evgeniy Kachalin wrote: Marc Schwartz (via MN) пишет: Marc Schwartz (via MN) пишет: library(Hmisc) library(lattice) ?panel.bpplot bwplot(, panel

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Evgeniy Kachalin
Austin, Matt пишет: Check your syntax on the bwplot call. fa - data.frame(doz=sample(500:2000, size=500), fabp2=rep(1:20, 25)) bwplot(factor(fabp2) ~ doz, data=fa, panel=panel.bpplot) Yes, that's almost the same But there is a huge amount of data on the graphic, too much for

Re: [R] Impaired boxplot functionality - mean instead of median

2005-12-01 Thread Martin Maechler
{diverted back to R-help} There are several R packages that provide plots of mean +/- SD (or mean +/- 2*SD which is an approximate 95% confidence interval for the case of normally distributed data) or so called error bars. E.g. function plotCI() in package 'gplots' and errbar() in package