I want to obscure the area where 10% are localized. I just arbitrarily set a truncation point of 65 to just build this plot. This is what I intend to find ... for each dataset.
xf <- rnorm(40000, 50, 10); plot(density(xf),xlim=c(0,100), main = paste(names(xf), "distribution")) dens <- density(xf) x1 <- min(which(dens$x >= 65))

source share