服务热线
178 0020 3020
library(ggplot2)
mydata<-read.csv("D:\\3\\R2-3.1.CSV",head=TRUE)
mydate<- melt(mydata,id.vars="Products",measure.vars=c("Q1th","Q2nd","Q3rd","Q4th"))
ggplot(mydate,aes(x=variable,y=value,fill=Products))+geom_bar(stat="identity",position="dodge")+theme_economist()+labs(x="Time",y="Index")+scale_fill_wsj("rgby")+ggtitle("R2-27")
library("ggplot2")
mydata<-read.csv("D:\\3\\R2_3_2.CSV ",head=TRUE)
ggplot(mydata,aes(x=社区,fill=态度))+geom_bar(position="stack")+coord_flip()+ggtitle("R2-27")
附件