plot.bsm: Plot brokenstick models

Description Usage Arguments Details See Also Examples

Description

Plot brokenstick models

Usage

1
2
3
4
## S3 method for class 'bsm'
plot(x, type = "b", lwd = 2, ylim = rev(range(xy$y)),
  add = FALSE, col = 1, col.pts = col, enumerate = FALSE,
  data = FALSE, xlab = NULL, ylab = NULL, ...)

Arguments

x

bsm object to plot, typically result from brokenstick or optBrokenstick.

type

Character indicating the type of plotting; actually any of the types as in plot.default.

lwd

The line width, a positive number, defaulting to 2.

ylim

the y limits (y1, y2) of the plot. Here y1 > y2 and leads to a "reversed axis".

add

If true add the plot to the already existing plot.

col

A specification for the default plotting color.

col.pts

Color of the breakpoints (can be of length > 1).

enumerate

A switch to indicate if the iteration number of points should be added to the plot.

data

Should the data used to fit the BSM be plotted as well ?

xlab

A title for the x axis: see title.

ylab

A title for the y axis: see title.

...

Further graphical parameters (see par) may also be supplied as arguments.

Details

Require eco.mem <= 4 (see bsmfit).

See Also

brokenstick, optBrokenstick

Examples

1
2
3
4
5
6
7
8
data(exses)
dv <- tdrply(identity, 1:2, no = 100, obj= exses)[[1]]
bsm <- brokenstick(dv) 
plot(bsm, data = TRUE, enumerate = TRUE)

# Similar (BUT plot.tdr draws a POSIXct x axis while plot.bsm draws a numeric axis)
plot(dv) 
plot(bsm, add = TRUE, enumerate = TRUE)

SESman/rbl documentation built on May 9, 2019, 11:10 a.m.