R语言 ggplot2 箱线图怎么水平放置

通过以下代码,得到下图library(ggplot2)ggplot(singer, aes(x=voice.part, y=height)) + geom_boxplot(fill=rainbow(8), color="black", notch=TRUE) + labs(title="箱线图:按声部分类", color = "red")我试了参数 horizontal=TRUE,但不行,怎么将它水平放置?

第1个回答  2018-09-28
正常画图出来就是你列出来这样的
相似回答