plot.RV: Plot a random variable of class "RV"

Description Usage Arguments Examples

Description

Plot a random variable of class "RV"

Usage

1
2
3
## S3 method for class 'RV'
plot(x, ..., tol = 1e-10, pch = 16, cex = 1.2, lwd = 2,
  col = "black", xlab = "Possible Values", ylab = "Probabilities")

Arguments

x

A random variable

...

Additional arguments to be passed to the "plot" function

tol

Only display outcomes with probabilities above tol

pch

Either an integer specifying a symbol or a single character to be used as the default in plotting points.

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default.

lwd

The line width, a positive number, defaulting to 2.

col

A specification for the default plotting color

xlab

Label for the X axis

ylab

Label for the Y axis

Examples

1
2
fair.die <- RV(1:6, rep(1/6,6))
plot(fair.die)

erichare/discreteRV documentation built on May 16, 2019, 8:27 a.m.