Re: [R] Help with stripplot

From: Ghosh, Sandeep <>
Date: Fri 01 Jul 2005 - 05:21:38 EST

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.


-----Original Message-----
From: Deepayan Sarkar [] Sent: Thursday, June 30, 2005 12:04 PM
To: Ghosh, Sandeep

Cc: Sundar Dorai-Raj; Subject: Re: [R] Help with stripplot

On Thursday 30 June 2005 11:40, Ghosh, Sandeep wrote:
> Thanks for the prompt reply. I need some more help. I want the datapoints
> for each group to show up in a different color, like all wt data points to
> be green, het to be blue and hom to be red. Also I need the median point of
> all the data points plotted as well by a short line as shown in attachment.

stripchart takes you almost all the way there:


     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 mailing list PLEASE do read the posting guide! Received on Fri Jul 01 05:29:21 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:08 EST