It would help if you would give us a copy of at least part of the data you are using and show us what you have tried so far. This is a simple example. In this case the median is for the entire data set not for a single group. But you really didn't give us enough information.
x <- rnorm(75) g <- rep(1:3, 25) stripchart(x~g) abline(v=median(x), lty=2) ---------------------------------------------- David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77843-4352 > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Luigi > Sent: Wednesday, June 13, 2012 10:57 AM > To: r-help@r-project.org > Subject: [R] Median line with stripchart > > Dear all, > > I would like to ask if it possible to draw a median line in a > Stripchart, > either using the built-in STRIPCHART function or with another package. > > I was expecting stripchart() to work more or less like boxplot(), but I > couldn't find an easy way to draw a mean or median line, neither I > found > this option in other packages. > > Could somebody help? > > Best regards, > > > > Luigi Marongiu, MSc > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. ______________________________________________ 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.