R语言学习笔记
#保存图片
pdf("mygraph.pdf")
attach(mtcars)
plot(wt,mpg)
abline(lm(mpg~wt))
title("regression of MPG on Weight")
detach(mtcars)
dev.off()
#3.2药物剂量水平上的响应情况
dose <-c(20,30,40,45,60)
drugA <-c(16,20,27,40,60)
drugB <-c(15,18,25,31,40)
plot(dos
原创
2021-03-21 18:20:36 ·
197 阅读 ·
0 评论