plot应用

来源:2-3 R语言基础 矩阵和数组

EN龙

2017-11-08 22:53

> x1 <- c(35, 40, 40, 42, 37, 45, 43, 37, 44, 42, 41, 39)

> x2 <- c(60, 74, 64, 71, 72, 68, 78, 66, 70, 65, 73, 75)

> plot(x1, x2)

> plot(x1, x2, main=“胸围与体重”, xlab="胸围", ylab="体重", clo="blue", pch=17)

Error: unexpected input in "plot(x1, x2, main=?

为什么不行呢?

写回答 关注

1回答

  • hyena呜呜啦
    2017-11-10 13:03:54

    “胸围与体重”的输入不对,删了重新在r里输入就可以了,此外col=“blue”

R语言基础

本R语言基础教程,教你如何在R中操纵自己数据,快速入门

79888 学习 · 274 问题

查看课程

相似问题