从R中的直方图中的条移除边框

时间:2014-12-03 10:58:11

标签: r

如何删除R中条形周围的边框,以便只保留填充?

而不是:

enter image description here

我想要这个:

enter image description here

想要为边框着色!

1 个答案:

答案 0 :(得分:7)

您可以将此参数设置为hist的额外选项,lty="blank"

hist(rnorm(100), lty="blank", col="hotpink")