Is it possible to create a dotplot - dotchart() - in R wi开发者_StackOverflowth a horizontal orientation?
If you use the dotplot from the lattice package, there is an argument named horizontal that controls direction.
dotplot(VADeaths, main = "Death Rates in Virginia - 1940", horizontal = FALSE)
dotplot(VADeaths, main = "Death Rates in Virginia - 1940", horizontal = TRUE)
It is not quite clear to me what you mean by horizontal, but you might compare the effect of
dotchart(VADeaths, main = "Death Rates in Virginia - 1940")
and its transpose
dotchart(t(VADeaths), main = "Death Rates in Virginia - 1940")
加载中,请稍侯......
精彩评论