Re: [R] Lines in dotchart & dotplot ?

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Mon, 11 Jun 2007 12:50:37 -0700

On 6/11/07, John Kane <jrkrideau_at_yahoo.ca> wrote:
>
> --- deepayan.sarkar@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



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. Received on Mon 11 Jun 2007 - 20:32:06 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 12 Jun 2007 - 11:31:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.