plot.dst: Plot a Distribution

View source: R/plot.R

plot.dstR Documentation

Plot a Distribution

Description

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

Usage

## S3 method for class '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)


vincenzocoia/distionary documentation built on March 5, 2024, 3:13 a.m.