plot_qq_marginals {sdamr}R Documentation

Q-Q plots with distributions in the margins

Description

plot_qq_marginals creates an enhanced Q-Q plot with the observed and theoretical distributions shown in the margins of the plot.

Usage

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,
  ...
)

Arguments

x

A numeric vector

breaks

How to compute breakpoints for the histogram. See ?hist

newpage

(logical) Should the plot be plotted on a new page?

xlab

Label for x-axis

ylab

Label for y-axis

xlim

Range of x values shown

ylim

Range of y values shown

main

Main title

sub

Subtitle

axes

(logical) Draw axes?

border

(logical) Draw a border?

...

Further arguments

Value

No return value. The function adds a plot to the active graphics window.

Examples

data(anchoring)
plot_qq_marginals(anchoring$everest_feet)

[Package sdamr version 0.2.0 Index]