Skip to content

Help with stripplot

1 message · Ghosh, Sandeep

#
Another question, in stripchart is there a way to draw a legends. I need legends that gives the mice count for each genotype wt/het/hom, something like the xyplot plot support for key/auto.key.

-Sandeep


-----Original Message-----
From: Deepayan Sarkar [mailto:deepayan at stat.wisc.edu]
Sent: Thursday, June 30, 2005 12:04 PM
To: Ghosh, Sandeep
Cc: Sundar Dorai-Raj; r-help at stat.math.ethz.ch
Subject: Re: [R] Help with stripplot
On Thursday 30 June 2005 11:40, Ghosh, Sandeep wrote:
stripchart takes you almost all the way there:


with(dataFrame, 
     stripchart(marbles_buried ~ genotype, 
                vert = TRUE, method = "jitter", 
                col = c('blue', 'red', 'green')))
meds <- as.vector(with(dataFrame, 
                       by(marbles_buried, genotype, median)))
segments((1:3)-0.25, meds, (1:3)+0.25, meds, col = c('blue', 'red', 'green'))


Deepayan