I would rather use cleveland dot plots than bar charts to display my study results. I have not been able to find (or figure out) an R package that is capable of producing the publication quality dot charts Im looking for. I have either not been able to get error bars (lattice), cannot order the data display properly (latticeExtra), or cannot make adjustments to axes. Does anyone have a quick suggestion for a package that can handle cleveland dot plots well? -- View this message in context: http://r.789695.n4.nabble.com/Cleveland-dot-plots-tp3581122p3581122.html Sent from the R help mailing list archive at Nabble.com.
Kia ora Colin I don't know if there is a package that does what you want, but they are easy enough to create using plot(). Error bars can be added with arrows(). HTH ... Peter Alspach> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Colin Wahl > Sent: Wednesday, 8 June 2011 11:30 a.m. > To: r-help at r-project.org > Subject: [R] Cleveland dot plots > > I would rather use cleveland dot plots than bar charts to display my > study > results. I have not been able to find (or figure out) an R package that > is > capable of producing the publication quality dot charts Im looking for. > I > have either not been able to get error bars (lattice), cannot order the > data > display properly (latticeExtra), or cannot make adjustments to axes. > Does > anyone have a quick suggestion for a package that can handle cleveland > dot > plots well? > > -- > View this message in context: http://r.789695.n4.nabble.com/Cleveland- > dot-plots-tp3581122p3581122.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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.The contents of this e-mail are confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, disseminate, distribute or reproduce all or any part of this e-mail or attachments. If you have received this e-mail in error, please notify the sender and delete all material pertaining to this e-mail. Any opinion or views expressed in this e-mail are those of the individual sender and may not represent those of The New Zealand Institute for Plant and Food Research Limited.
On Wed, Jun 8, 2011 at 5:00 AM, Colin Wahl <biowahl at gmail.com> wrote:> I would rather use cleveland dot plots than bar charts to display my study > results. I have not been able to find (or figure out) an R package that is > capable of producing the publication quality dot charts Im looking for. I > have either not been able to get error bars (lattice), cannot order the data > display properly (latticeExtra), or cannot make adjustments to axes. Does > anyone have a quick suggestion for a package that can handle cleveland dot > plots well?If you need error bars, you may consider Dotplot() in the Hmisc package or segplot() in latticeExtra. Your other complaints are too vague to respond to. Perhaps if you provide us with a reproducible example and a comprehensible description of what you would like to happen, someone may be able to tell you whether that is feasible. -Deepayan
Colin Wahl wrote:> > I would rather use cleveland dot plots than bar charts to display my study > results. I have not been able to find (or figure out) an R package that is > capable of producing the publication quality dot charts Im looking for. I > have either not been able to get error bars (lattice), cannot order the > data display properly (latticeExtra), or cannot make adjustments to axes. > Does anyone have a quick suggestion for a package that can handle > cleveland dot plots well? >Most of the things you mention can be accomplished within the lattice package, using panel functions and the scales= argument. The reorder() function will probably accomplish what you're looking for when you say "order the data display properly". A few years ago, I wrote a short paper on dotplots that you might find helpful: Jacoby, William G. 2006. "The Dotplot: A Graphical Display for Labeled Quantitative Values." The Political Methodologist 14(1): 6-14. A longer version of the paper is available http://polisci.msu.edu/jacoby/research/dotplots/ here . Both of these papers provide examples of the things you mention (error bars, reordering data, etc.). Hope this helps! -- View this message in context: http://r.789695.n4.nabble.com/Cleveland-dot-plots-tp3581122p3582719.html Sent from the R help mailing list archive at Nabble.com.