I was wondering if there is an argument to suppress the default grey horizontal abline (see picture below) that comes with density()
in R?
plot(density(rnorm(1e4)))
Sure is, as ?plot.density
tells us:
plot(density(rnorm(10000)), zero.line = FALSE)