[R] Dot plots in R
Paul Smith
phhs80 at gmail.com
Sat Nov 24 23:02:53 CET 2007
On Nov 24, 2007 9:57 PM, jim holtman <jholtman at gmail.com> wrote:
> Does this give you want you want?
>
> x <- sample(1:10)
> plot(rep(1:10, x), unlist(sapply(x, seq)), pch=19, cex=3, yaxt='n')
>
>
>
> On Nov 24, 2007 4:26 PM, Paul Smith <phhs80 at gmail.com> wrote:
> > Dear All,
> >
> > Can R produce dot plots like the one of the following picture:
> >
> > http://en.wikipedia.org/wiki/Image:Dotplot_of_random_values.png
> >
> > ?
> >
> > I have tried dotchart, but no success.
Thanks to all.
All approaches work, but the dots with stripchart are too far away
from the x-axis. Can one move the dots down?
Paul
More information about the R-help
mailing list