服务热线
178 0020 3020
library(ggplot2)
library(reshape2)
library(ggthemes)
QAQ<-read.csv("R2-3.1.csv")
qaq<-melt(QAQ,id.var="Products",variable.name="Quater",value.name="Index")
ggplot(qaq,aes(Quater,Index,fill=Products))+geom_bar(stat="identity",position="dodge")+xlab("Time")+
+ theme_economist()+scale_fill_wsj("rgby","")+
+ theme(axis.ticks.length=unit(0.5,'cm'))+
+ guides(fill=guide_legend(title=NULL))+
+ ggtitle("R2-33")+
+ xlab("Time")
library(ggplot2)
library(reshape2)
library(ggthemes)
a<- read.csv("R2_3_2.csv")
ggplot(a,aes(社区,fill=态度))+geom_bar()+
+ ggtitle("R2-33")+coord_flip()
附件