calc_expected_ | R Documentation |
Calculate expected values for the given variable.
calc_expected_(vector, fun = stats::qnorm, seed = NULL, na.rm = TRUE, ...)
vector |
a numeric vector. |
fun |
a function used for generation of the distribution, |
seed |
seed to be set for random number generation. If NULL, no seed is set. |
na.rm |
should NA's be removed from the input vector? |
... |
extra arguments passed to fun. |
credits to: https://stackoverflow.com/questions/43217104/coloring-points-in-a-geom-qq-plot.
A numeric vector of the same length as vector with the expected values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.