density_points | R Documentation |
Given a vector of values, computes the empirical density for each observation.
density_points(x, ...)
x |
A numeric vector. |
... |
Additional arguments to be passed to the density function. |
A list with...
x = the sorted values for the original input;
y = the associated empirical densities.
plot(c(-4,4),c(0,.5),type='n',ylab='Density',xlab='z-scores')
x = rnorm( 100 )
dp = density_points( x )
points( dp$x, dp$y, pch = 19 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.