服务热线
178 0020 3020
library(ggplot2)
mydata <-read.csv("/Users/Hong/Desktop/data/data11/task1.csv")
ggplot(mydata,aes(x=mean,y=statu,colour=group))+geom_errorbar(aes(ymin=statu-sd,ymax=statu+sd),width=0.1)+geom_line()+geom_point()+ggtitle("R2-37")
options(scipen=999)
library(ggplot2)
theme_set(theme_bw())
ggplot(midwest,aes(x=area,y=poptotal))+geom_point(aes(col=state,size=popdensity))+geom_smooth(method="loess")+xlim(c(0,0.1))+ylim(c(0,500000))+labs(subtitle="Area VS population",x="Area",y="population",title="R2-37",caption="Source:midwest")
library(RColorBrewer)
library(ggplot2)
mydata <-read.csv("/Users/Hong/Desktop/data/data11/task3.csv")
mymatrix=data.matrix(mydata[,c(-1)])
row.names(mymatrix)=mydata[,1]
heatmap(mymatrix,Rowv=NA,Colv=NA,scale="column",main="R2-37")
附件