[R] mean in the boxplot

David Winsemius dwinsemius at comcast.net
Fri Apr 1 19:28:04 CEST 2011


On Apr 1, 2011, at 1:20 PM, Yan Jiao wrote:

> Dear R users,
>
> How to show mean in the boxplot instead of median ?

Read ... help(boxplot)

Use boxplot to create a set of values, substitute th emean for the  
groups then pass the mangled set of values to bxp().

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list