interval: interval

Description Usage Arguments Details Examples

View source: R/distrFunc.R

Description

Plots interval(s) according to the selected distribution function. Please note that for a continuous distribution polygon is used whereas for a discrete distribution points and lines is used. Therefore the further graphical parameters must be set accordingly.

Usage

1
interval(dist, left, right, shift = 0, n = 201, ...)

Arguments

dist

distribution function

left

numeric: left interval border

right

numeric: right interval border

shift

numeric: shift of x in case of a mass function

n

numeric: number of points in case of a continuous distribution

...

further named graphical parameters

Details

Note: for the distribution and quantile function of a discrete distribution an error is generated!

Examples

1
2
3
4
5
6
d <- distrFunc("norm")
plot(d)
interval(d, -1.96, +1.96, col="red")
d <- distrFunc("geom", prob=0.7)
plot(d)
interval(d, 1, 5, col="red")

sigbertklinke/mmstat documentation built on May 14, 2019, 8:36 a.m.