Skip to content
Back to formatted view

Raw Message

Message-ID: <223C6851-C865-4658-AFD3-AE56B9DBBE75@gmail.com>
Date: 2012-07-13T06:57:57Z
From: Peter Dalgaard
Subject: Side by side strip charts
In-Reply-To: <1342160312546-4636399.post@n4.nabble.com>

On Jul 13, 2012, at 08:18 , darnold wrote:

> Hi,
> 
> 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. 
> 
> http://r.789695.n4.nabble.com/file/n4636399/IMG_1306.jpg 
> 
> 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
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com