Learn R Programming

convdistr (version 1.6.1)

plot.DISTRIBUTION: plot of DISTRIBUTION objects

Description

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

Usage

# S3 method for DISTRIBUTION
plot(x, n = 10000, ...)

Value

No return value. Side effect plot the histogram.

Arguments

x

an object of class DISTRIBUTION

n

number of observations

...

other parameters to the hist function

Examples

Run this code
x <- new_NORMAL(0,1)
plot(x)
y <- new_DIRICHLET(c(10,20,70))
plot(x) 

Run the code above in your browser using DataLab