0
点赞
收藏
分享

微信扫一扫

R-实战1

向上的萝卜白菜 2022-01-24 阅读 44
##插入数据
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()

请添加图片描述

举报

相关推荐

0 条评论