Learn R Programming

univariateML (version 1.5.0)

plot.univariateML: Plot, Lines and Points Methods for Maximum Likelihood Estimates

Description

The plot, lines, and points methods for univariateML objects.

Usage

# S3 method for univariateML
plot(x, range = NULL, kind = c("d", "p", "q"), ...)

# S3 method for univariateML lines(x, range = NULL, kind = c("d", "p", "q"), ...)

# S3 method for univariateML points(x, range = NULL, kind = c("d", "p", "q"), ...)

Value

An invisible copy of x.

Arguments

x

a univariateML object.

range

range of x values to plot, i.e. c(lower, upper).

kind

can be density, probability, or quantile.

...

parameters passed to plot, lines, or points.

Examples

Run this code
plot(mlweibull(datasets::precip), main = "Annual Precipitation in US Cities")
lines(mlgamma(datasets::precip), lty = 2)
rug(datasets::precip)

Run the code above in your browser using DataLab