R10-钦宏

superhong 2017-10-20 20:43:00 阅读: 1247

> rm(list = ls())

> #Define working directory where source files are located

> work.dir <- "F:/network anslysis/20171018Homework/"

> setwd(work.dir)

> getwd()  #check working directory

[1] "F:/network anslysis/20171018Homework"

> data <- read.table("data.txt", header=TRUE)

> data

    X  Y

1   5 32

2   7 40

3   4 21

4   1 23

5   3 28

6   2 36

7   5 40

8   5 50

9   6 48

10 11 68

11  8 55

12  2 27

13  2 18

> plot(data,main='MSA患者UPDRS评分与病程的关系', xlab='病程', ylab='UPDRS评分',xlim=c(0,12),ylim=c(0,70),cex=1.5,font.lab=1,pch=2,col='red',col.lab='blue',col.main='black',col.axis="orange")

Rplot.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-2025 科研好助手,京ICP备20005780号-1 建议意见

服务热线

178 0020 3020

微信服务号