powered by
This stat computes quantiles of the sample and theoretical distribution for the purpose of providing reference lines for QQ-plots.
stat_qqline(mapping = NULL, data = NULL, geom = "line", position = "identity", ..., distribution = stats::qnorm, dparams = list(), na.rm = FALSE, show.legend = NA, inherit.aes = TRUE)
An aesthetic mapping produced with aes() or aes_string().
aes()
aes_string()
A data frame.
A geom.
A position object.
Additional arguments
A quantile function.
A list of arguments for distribution.
distribution
A logical indicating whether a warning should be issued when missing values are removed before plotting.
A logical indicating whether legends should be included for this layer. If NA, legends will be include for each aesthetic that is mapped.
NA
A logical indicating whether aesthetics should be inherited. When FALSE, the supplied mapping will be the only aesthetics used.
FALSE
mapping
# NOT RUN { ggplot(data = iris, aes(sample = Sepal.Length)) + geom_qq() + stat_qqline( alpha = 0.7, color = "red", linetype = "dashed") + facet_wrap(~Species) # }
Run the code above in your browser using DataLab