[R] Lines in dotchart & dotplot ?

John Kane jrkrideau at yahoo.ca
Tue Jun 12 12:48:58 CEST 2007


Thanks again.  Both layouts look very usefull and
certainly a lot better than I was getting on my own.  


--- Deepayan Sarkar <deepayan.sarkar at gmail.com> wrote:

> On 6/11/07, John Kane <jrkrideau at yahoo.ca> wrote:
> >
> > --- deepayan.sarkar at gmail.com wrote:
> >
> > > On 6/9/07, John Kane <jrkrideau at yahoo.ca> wrote:
> > > > Is it possible to use dotchart or dotplot and
> set
> > > the
> > > > lines in such a way that they only extend from
> the
> > > > left y-axis to the data point?
> > >
> > > Yes (sort of) in dotplot at least. E.g.,
> > >
> > > dotplot(VADeaths, groups = FALSE, type = c("p",
> > > "h"))
> > > dotplot(VADeaths, groups = FALSE, type = c("p",
> > > "h"), origin = 0)
> > >
> > > -Deepayan
> > >
> >
> > Ah, that is quite nice, not exactly what I
> remember
> > from Cleveland but it should do quite nicely.
> 
> You can do that too if you really want to:
> 
> dotplot(VADeaths, groups = FALSE, type = c("p",
> "h"), origin = 0,
>         panel = panel.xyplot, pch = 16, lty = 3, col
> = "black")
> 
> -Deepayan



More information about the R-help mailing list