服务热线
178 0020 3020
setwd("E:/bioinformatics/fanzhimin")
library(ggplot2)
library(ggthemes)
library(reshape2)
data1 <- read.csv("R2-3.1.csv", header = T)
data2<-melt(data1,id.vars="Products",variable.name="Quater",value.name="Index")
ggplot(data2,aes(Quater,Index,fill=Products))+geom_bar(stat="identity",position="dodge")+theme_economist() + scale_fill_wsj("rgby")+ggtitle("R2-36")+xlab("Time")
data3<-read.csv("R2-3.2.csv",header=T)
ggplot(data3,aes(社区,fill=态度))+geom_bar(position='stack')+coord_flip()+ggtitle('R2-36')
附件