normalp (version 0.7.2)

graphnp: Plot of exponential power distributions

Description

The function graphnp returns on the same device, marked with different colours, from one to five exponential power distributions.

Usage

graphnp(p=c(1,2,3,4,5), mu=0, sigmap=1, title="Exponential Power Distributions")

Value

A graphic device with till five different curves. The curves have different colours and the device is completed by a legend.

Arguments

p

A vector of \(p\) values. His length must be maximum five.

mu

Value of the location parameter.

sigmap

Value of the scale parameter.

title

The title of the plot.

Author

Angelo M. Mineo

Details

If one or more values of p are greater than or equal to 50, graphnp will plot the density function of an uniform distribution.

Examples

Run this code
## Plot four different curves with p=1,2,3,4
## and 50 (it will plot an uniform distribution)
graphnp(c(1:4,50))

Run the code above in your browser using DataCamp Workspace