graphnp: Plot of exponential power distributions

View source: R/graphnp.R

graphnpR Documentation

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")

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.

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.

Value

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

Author(s)

Angelo M. Mineo

Examples

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

normalp documentation built on May 29, 2024, 10:27 a.m.