[R] how to construct stripchart with coincident points centered

Robert Baer rbaer at atsu.edu
Fri Sep 8 15:59:03 CEST 2006


You may be looking for:
 stripchart(y, method="jitter", pch="o", vertical=TRUE,jitter=.5)

Rob
____________________________
Robert W. Baer, Ph.D.
Associate Professor
Department of Physiology
A. T. Still University of Health Science
800 W. Jefferson St.
Kirksville, MO 63501-1497 USA

----- Original Message ----- 
From: "Berta" <ibanez at bioef.org>
To: <r-help at stat.math.ethz.ch>
Sent: Friday, September 08, 2006 3:53 AM
Subject: [R] how to construct stripchart with coincident points centered


> Hi R-users,
> I am using stripchart with coincident points,
>
> y <-rbinom(100, 3, 0.5)
> stripchart(y, method="stack", pch="o", vertical=TRUE)
>
> But the result is not centered in the sense that if a value (say value 0)
is
> repeated 7 times, the first point is ploted in the middle and the rest at
> its right side, in stead of ploting 3 at its right and 3 at its left.  Can
> anybody help?
>
> Thanks,
> Berta.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>



More information about the R-help mailing list