[R] Dot plots in R

jim holtman jholtman at gmail.com
Sat Nov 24 23:10:36 CET 2007


You can play around with 'ylim' and 'cex'.

On Nov 24, 2007 5:02 PM, Paul Smith <phhs80 at gmail.com> wrote:
> 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
>
> ______________________________________________
> R-help at r-project.org 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?



More information about the R-help mailing list