【发布时间】:2015-08-20 04:10:31
【问题描述】:
我的目标是绘制一些乐队在音乐节上演奏的频率。基本上,情节应该是这样的:
ggplot(plot.df2, aes(reorder(bands,count),count)) + geom_point() + coord_flip()+ theme_bw()
但我想为每次乐队在那里演奏过的每一场比赛加分。这将是一个像这样的“要点”:
ggplot(plot.df2, aes(count)) + geom_dotplot()+ coord_flip()+theme_bw()
这在 ggplot2 中可行吗?
这是一些示例数据:
bands<-c("Queens of the Stone Age","The Sounds","Beatsteaks","Billy Talent","Donots","The Hives","Tocotronic")
count<-c(6,6,5,5,5,5,5)
plot.df<-as.data.frame(cbind(bands,count))
【问题讨论】: