[R] Lines in dotchart & dotplot ?

deepayan.sarkar at gmail.com deepayan.sarkar at gmail.com
Sat Jun 9 20:36:32 CEST 2007


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

> I seem to remember that Wm Cleveland did this in his
> 1985 book  "The elements of graphing data".
>
> In cases where one has a true starting or O point on
> the x-scale this layout seems to be very effective in
> displaying some data.
>
> I know that I can do it by simple ploting lines and
> points but a more polished function than I am likely
> to produce would be nice.
>
> Thanks
>
> ______________________________________________
> 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