抑制R中密度()的默认灰色水平线

时间:2017-05-09 05:29:31

标签: r plot kernel-density density-plot

我想知道是否存在抑制默认灰色水平下划线({strong> 见下图 )的参数{{1在R?

density()

enter image description here

1 个答案:

答案 0 :(得分:5)

当然,正如?plot.density告诉我们的那样:

plot(density(rnorm(10000)), zero.line = FALSE)