Q-Q plots with distributions in the margins
plot_qq_marginals
creates an enhanced Q-Q plot with the observed and theoretical distributions shown in the margins of the plot.
plot_qq_marginals( x, breaks = "Sturges", newpage = TRUE, xlab = "Observed Quantiles", ylab = "Theoretical quantiles", xlim = grDevices::extendrange(c(min(x), max(x))), ylim = NULL, main = NULL, sub = NULL, axes = TRUE, border = TRUE, ... )
x
: A numeric vectorbreaks
: How to compute breakpoints for the histogram. See ?histnewpage
: (logical) Should the plot be plotted on a new page?xlab
: Label for x-axisylab
: Label for y-axisxlim
: Range of x values shownylim
: Range of y values shownmain
: Main titlesub
: Subtitleaxes
: (logical) Draw axes?border
: (logical) Draw a border?...
: Further argumentsNo return value. The function adds a plot to the active graphics window.
data(anchoring) plot_qq_marginals(anchoring$everest_feet)