问答详情
源自:2-3 R语言基础 矩阵和数组

plot应用

> 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=?

为什么不行呢?

提问者:EN龙 2017-11-08 22:53

个回答

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

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