legendr: Add a Legend to a Plot

Description Usage Arguments Value Author(s) See Also Examples

Description

Adds a legend to a plot as does legend. This function just expresses the position relative to the range of the coordinates

Usage

1
legendr(x = 0.05, y = 0.95, legend, ...)

Arguments

x

position in horizontal direction, between 0 for left margin and 1 for right margin

y

position in vertical direction, between 0 for bottom margin and 1 for top margin

legend

text of the legend

...

arguments passed to legend

Value

See legend

Author(s)

Werner A. Stahel, ETH Zurich

See Also

legend

Examples

1
2
     ts.plot(ldeaths, mdeaths, fdeaths,xlab="year", ylab="deaths", lty=c(1:3))
     legendr(0.7,0.95, c("total","female","male"), lty=1:3)

regr0 documentation built on May 2, 2019, 4:52 p.m.

Related to legendr in regr0...