服务热线
178 0020 3020
> library(ggplot2)
> library(reshape2)
> library(ggthemes)
> a<-read.csv(file="R2-3.1.csv")
> b<-melt(a,id.vars='Products',variable.name='Quater',value.name='Index')
ggplot(b,aes(Quater,Index,fill=Products))+geom_bar(stat='identity',position='dodge')+theme_economist() + scale_fill_wsj('rgby')+xlab('Time')+ggtitle("R2-07")
library(ggplot2)
> a<-read.csv("R2_3.2.csv")
>ggplot(a,aes(社区,fill=态度))+ geom_bar(position="stack")+ coord_flip()+ggtitle("R2-07")
附件