vline: vline

Description Usage Arguments Value Examples

View source: R/distrFunc.R

Description

Draws one (or more) vertical line(s) in a plot. The line is drawn from the bottom until it intersects the distribution function and either does not continut (cont=1, default), continues to the left (cont=2), to the top (cont=3) or to the right (cont=4).

Usage

1
vline(dist, x, cont = 1, ...)

Arguments

dist

distribution object

x

numeric: x-coordinates

cont

numeric: continuation (default: 1)

...

further graphical parameters, e.g. line color etc.

Value

Returns invisibly a list with x-y-coordinates of the intersection of x coordinates with the distribution function.

Examples

1
2
3
4
5
d <- distrFunc("norm")
plot(d)
vline(d, -1.96, cont=2, col="blue")
vline(d, 0)
vline(d, +1.96, cont=4, col="blue")

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