This function is to be added as a stat_ to a ggplot2 plot. It creates a density plot calculated from the cubic spline of the cumulative frequency of a variable.
1 2 3 4 |
minval |
The minimum value in a range of values |
maxval |
The maximum value in a range of values |
break_size |
The size of each break |
adjust_to_zero |
If minimum derivative is < 0 update derivatives to derivatives + min(derivatives) |
to_density |
Adjust derivatives so that AUC = 1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.