开发者

Horizontal dotplot in R

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")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜