服务热线
178 0020 3020
R2-3-1
library(ggplot2)
library(reshape2)
library(ggthemes)
data1=read.csv("J:\\R\\1121\\R2-3-1.csv",header=TRUE)
mydata=melt(data1,id.vars="Products",variable.name="Quater",value.name="Index")
ggplot(mydata,aes(Quater,Index,fill=Products))+
geom_bar(stat='identity',position='dodge')+
theme_economist() + scale_fill_wsj('rgby')+
xlab('Time')+
ggtitle('R2-34')
R2-3-2
mydata2=read.csv("J:\\R\\1121\\R2-3-2.csv",head=TRUE)
ggplot(mydata2,aes(社区,fill=态度))+
geom_bar(position='stack')+
coord_flip()+
ylab("频数")+
ggtitle('R2-34')
附件