数据,在附件里,格式:分隔符的txt文件,v1-v8代表不同的样品,L18-L36代表不用的长度(横坐标)。
大家原谅我的愚笨吧,用plot函数能实现吗?当然只要用r就好!!!!!!!!!!!!!!!
|
楼主: mswsg
|
1928
8
[问答] 画图 |
|
高中生 72%
-
|
回帖推荐for (i in 1:ncol(dat)) {
if (i == 1)
plot(1:nrow(dat), dat[, i], pch = i, lwd = 2, type = "o", col = i, axes = F, ylim = c(min(dat), max(dat)))
lines(1:nrow(dat), dat[, i], pch = i, type = "o", lwd = 2, col = i)
}
axis(2)
axis(1, at = 1:nrow(dat), labels = rownames(dat))
legend("topleft", legend = colnames(dat), col = 1:ncol(dat), lwd = 2)
box()
| ||||||||
|
|
| ||
| ||
|
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


