[R] dotchart with log scale?

hadley wickham h.wickham at gmail.com
Thu Jul 20 14:32:03 CEST 2006


> I would like to draw a dot chart on a log scale.
> What is the syntax for this? A barchart may use
> log="x", but trying this with dotchart() leads
> to an error message.

You can do this easily with ggplot:

install.packages("ggplot")
library(ggplot)
qplot(mpg, factor(cyl), data=mtcars, log="x")

Regards,

Hadley



More information about the R-help mailing list