服务热线
178 0020 3020
library(ggplot2)
library(reshape2)
library(ggthemes)
mydata <- read.csv("/Users/Hong/Desktop/data/data4/R2-3.1.csv",header=T)
md1 <- melt(mydata,id.vars="Products",measure.vars=c("Q1th","Q2nd","Q3rd","Q4th"))
ggplot(md1,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-37")
mydata <- read.csv("/Users/Hong/Desktop/data/data4/R2_3_2.csv",header=T)
library(ggplot2)
ggplot(mydata,aes(x=社区,fill=态度))+geom_bar(position="stack")+coord_flip()+ggtitle("R2-37")
附件