Learn R Programming

discreteRV (version 1.2.2)

plot.RVsim: Plot a simulated random vector

Description

Plot a simulated random vector

Usage

"plot"(x, ...)

Arguments

x
A simulated data vector produced with the 'rsim()' function
...
Additional arguments to be passed to the 'plot()' function

Examples

Run this code
X <- RV(c(100000,10000,0), c(0.00025,0.005,0.99475))
X.sim <- rsim(X, 200000)

plot(X.sim)

Run the code above in your browser using DataLab