[R] Side by side strip charts
pdalgd at gmail.com
Fri Jul 13 08:57:57 CEST 2012
On Jul 13, 2012, at 08:18 , darnold wrote:
> I'm looking for some ideas on how to reproduce the attached image in R.
> There are three samples, each of size n = 10. The first is drawn from a
> normal distribution with mean 60 and standard deviation 3. The second is
> drawn from a normal distribution with mean 65 and standard deviation 3. The
> third is drawn from a normal distribution with mean 70 and standard
> deviation 3.
> Any ideas?
What an excellent homework exercise...
stripchart() will do it if it gets a list() of vectors and you set the method= right. Notice that points won't stack unless exactly equal, so round()ing is required.
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-help