This question already has an answer here:
- Find the probability density of a new data point using “density” function in R 3 answers
- Density Value for each Return 3 answers
I was wondering if there is a R base way to obtain the exact kernel density at any point desired? As an example, how can I get the exact kernel density at the 3 following points -2, 0, +2 on X-Axis in a plot like below?
set.seed(2937107)
plot( density(rnorm(1e4)) )