Skip to contents

Create a plot of a ddf distribution.

Usage

# S4 method for class 'ddf,missing'
plot(
  x,
  xlab = "support",
  ylab = "probabilities",
  col = "deepskyblue3",
  main = NULL,
  sub = NULL,
  y
)

Arguments

x

A ddf object, the distribution.

xlab

The label for the \(x\)-axis.

ylab

The label for the \(y\)-axis.

col

The color for the points of the plot.

main

An overall title of the plot.

sub

A subtitle for the plot.

y

Unused argument. Has to be missing.

Value

A ggplot object displaying the given distribution.

See also

Other plotting functions: plot_cdf(), plot_pmf()

Examples

plot(pois(8))