服务热线
178 0020 3020
library(ggplot2)
library(reshape2)
library(ggthemes)
setwd("C:\\Users\\think\\Desktop\\3")
mydata<-read.csv("R2-3.1.csv")
ggplot(mydata,aes(x=Time,y=Index,fill=Products))+geom_bar(stat="identity",position = "dodge")
+labs(title="R2-19")+scale_fill_wsj("rgby")+theme_economist()
mydata2<-read.csv("R2_3_2.csv",header=T,row.names = 1)
ggplot(mydata2,aes(社区,fill=态度))+geom_bar(position="stack")+ggtitle("R2-19")+coord_flip()
附件