Description Usage Arguments Value See Also Examples
View source: R/qq_abline_slope.R
Function to calculate the slope of the theoretical normal distribution for a vector of numbers.
This can be used to visually compare actual vs. theoretical values to make an interpretation on whether a sample of numbers is
likely driven from a normally distributed population. Calculations are largely inspired from stats::qqline
function.
This can be used with ggplot2::geom_qq
to create a Q-Q plot.
1 |
x |
A numeric vector |
An integer corresponding to a slope
1 | qq_abline_slope(1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.