Skip to contents

Plot a functional representation of a distribution. Wrapper around the graphics::curve function.

Usage

# S3 method for dst
plot(
  x,
  what = c("density", "cdf", "survival", "quantile", "hazard", "chf"),
  ...
)

Arguments

x

Distribution object

what

Name of the representation to plot.

...

Other arguments to pass to the graphics::curve function. plot(dst_norm(5, 5)) plot(dst_empirical(-5:2), "cdf", n = 1001)