服务热线
178 0020 3020
data1<-read.csv(file.choose()) library(ggplot2) library(reshape2) library(ggthemes) data1<-melt(data1,id.vars='Products',variable.name=("Time"),value.name="Index") ggplot(data1,aes(x=Time,y=Index,fill=Products))+ geom_bar(stat="identity", position="dodge",alpha=0.8)+ scale_fill_wsj("rgby")+theme_economist()+ ggtitle("R2-13")+labs(x="Time")
data2<-read.csv(file.choose(),head=T) ggplot(data2,aes(x=社区,fill=态度))+ geom_bar(position="stack")+ coord_flip()+ ggtitle("R2-13")
附件