Description Usage Arguments Value See Also Examples
View source: R/qq_abline_intersect.R
Function to calculate the y-intercept 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.
Note: Requires a slope to be provided, otherwise uses qq_abline_slope
to calculate it (but will not return slope).
1 | qq_abline_intersect(x, slope = NULL)
|
x |
A numeric vector |
An integer corresponding to a y-intercept
1 | qq_abline_intersect(1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.