【发布时间】:2014-07-09 20:26:38
【问题描述】:
我在这里有一段非常基本的 R 代码,以及它产生的情节。为什么点不填红色?
plot(1, 1, col="blue", bg="red", cex=4)
【问题讨论】:
我在这里有一段非常基本的 R 代码,以及它产生的情节。为什么点不填红色?
plot(1, 1, col="blue", bg="red", cex=4)
【问题讨论】:
您需要使用pch = 21 到 25 之一,bg 才能工作
plot(1, 1, col = "blue", pch = 21, bg = "red", cex = 4)
来自points 帮助文件:
bg
pch = 21:25给出的开放绘图符号的背景(填充)颜色。
【讨论】: