Hi there,

I have a set of data that looks like this:

As1988<-c(1254.0, 22.0, 4.2, 1081.0, 35.0, 6.0, 1772.0,  192.0,  7.6)

The mean of this (as calculated by R) is: 485.9778

The median of this (as calculated by R) is:  35

 

If I then make a beanplot(As1988), I find that the beanline (average) is now
77.68561 while the beanline (median) is 35.39739 (using the locator function
to check the graph and log axis).

 

While I can understand the small discrepancy of the median(mouse hovering
over the line), I am at a loss to explain the huge difference between the
means. Is this a flaw in the package or is there something I am missing?  

 

My gut feeling is that the log scales are affecting the calculations
somehow.

 

Sincerely,

Michael Hopgood

 


	[[alternative HTML version deleted]]


