plot.DISTRIBUTION: plot of 'DISTRIBUTION' objects

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Plot an histogram of the density of the distribution using random numbers from the distribution

Usage

1
2
## S3 method for class 'DISTRIBUTION'
plot(x, n = 10000, ...)

Arguments

x

an object of class DISTRIBUTION

n

number of observations

...

other parameters to the hist function

Value

No return value. Side effect plot the histogram.

Examples

1
2
3
4
x <- new_NORMAL(0,1)
plot(x)
y <- new_DIRICHLET(c(10,20,70))
plot(x) 

convdistr documentation built on April 20, 2021, 9:06 a.m.