【问题标题】:Plot option 'bg' not working绘图选项“bg”不起作用
【发布时间】:2014-07-09 20:26:38
【问题描述】:

我在这里有一段非常基本的 R 代码,以及它产生的情节。为什么点不填红色?

plot(1, 1, col="blue", bg="red", cex=4)

【问题讨论】:

    标签: r plot


    【解决方案1】:

    您需要使用pch = 21 到 25 之一,bg 才能工作

    plot(1, 1, col = "blue", pch = 21, bg = "red", cex = 4)
    

    来自points 帮助文件:

    bg

    pch = 21:25 给出的开放绘图符号的背景(填充)颜色。

    【讨论】:

      猜你喜欢
      • 2017-11-05
      • 2021-05-09
      • 2014-04-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多