On Wed, May 9, 2012 at 3:25 AM, maxbre <mbres...@arpa.veneto.it> wrote: > Given this example > > mean.values<-colMeans(VADeaths) > > mean.values<-apply(VADeaths, 2, mean) > median.values<-apply(VADeaths, 2, median) > > dotchart(VADeaths, gdata=mean.values) > dotchart(VADeaths, gdata=median.values) > > is it possible to “combine” a single dotchart showing both the mean and the > median for each single group (with different plotting symbols)? >
Try this: dotchart(VADeaths, gdata=mean.values) par(new = TRUE) dotchart(VADeaths, gdata=median.values, gpch = 20) -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.