Re: [R] Help: Beanplots calculating wrong average

2009-11-29 Thread Tom Wainwright
On 11/26/2009 02:25 AM, Michael Hopgood wrote: Hi Tom, Thank you for the friendly and informative answer. It does explain a lot of things, actually. As with any good answer, it inevitably leads to other questions. In the first place, I need the arithmetic mean. It's what we base our calculat

Re: [R] Help: Beanplots calculating wrong average

2009-11-26 Thread Michael Hopgood
uot;#66FF0090") text(5.58,10,"MKM", cex=1.2, font=2) The polygons convey information on whether each sample is higher than the soil guideline value. If I take away, the log scale, the vast difference in values obscures the polygons... Ideally I'd like the average beanline to b

Re: [R] Help: Beanplots calculating wrong average

2009-11-24 Thread Tom Wainwright
Hi Michael, Looking at the help for beanplot(), note that the 'log' option defaults to 'auto' which means the function will automatically log-transform data like yours. This also implies that the mean it shows is the geometric mean, not the arithmetic mean. As you note, the transformation do

Re: [R] Help: Beanplots calculating wrong average

2009-11-24 Thread joris meys
Hi, The log of the mean is not the same as the mean of the logs, that's a no-brainer. Guess you use the beanplot from the package with the same name. > beanplot(As1988,log="") gives the correct plot. Next time, could you provide a minimal code example we can run ourselves? If we don't know what