##插入数据
mydata<- data.frame(age=numeric(0),gender=character(0),weight=numeric(0))
mydata<-edit(mydata)
##绘图-存储
pdf("mygraph.pdf")
attach(mtcars)
plot(wt,mpg)
abline(lm(mpg~wt))
title("Regression of MPG")
detach(mtcars)
dev.off()
R-实战1
最新推荐文章于 2024-05-13 15:58:15 发布