R2-37综合应用案例作业提交

洪学志 2018-01-09 13:39:23 阅读: 1123

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")

11-1.png

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")

11-2.png

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")

11-3-2.png


 
邀请讨论

附件

{{f.title}} 大小 {{f.file_size}} 下载 {{f.count_download}} 金币 {{f.count_gold}}
{{item.nick_name}} 受邀请回答 {{item.create_time}}
{{item.refer_comment.nick_name}} {{item.refer_comment.create_time}}

附件

{{f.title}} 大小 {{f.file_size}} 下载 {{f.count_download}} 金币 {{f.count_gold}}
切换到完整回复 发送回复
赞({{item.count_zan}}) 踩({{item.count_cai}}) 删除 回复 关闭
科研狗©2015-2024 科研好助手,京ICP备20005780号-1 建议意见

服务热线

178 0020 3020

微信服务号