fitPlot: 'fitPlot' Plot output from 'fitDrift'

Description Usage Arguments Value Author(s) See Also Examples

View source: R/fitDrate.R

Description

fitPlot Plot output from fitDrift

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
fitPlot(
  fit,
  yLims = c(-0.5, 0.2),
  fitCol = 2,
  fitAlpha = 0.2,
  add = F,
  fitLwd = 1,
  ptMag = 2,
  ptAlpha = 1
)

Arguments

fit

Output list from the fitDrift function.

yLims

Set range of y axis

fitCol

Colour to be used for estimated drift trajectory

fitLwd

Line width to be used for estimated mean drift trajectory

ptMag

Scaling for point size

ptAlpha

Scaling for point transparency (usually has to be 1 or less)

fitAlpa

Transparency to e used for estimated drift trajectory

Value

A plot with data and the fitted estimates with confidence intervals

Author(s)

Martin Biuw

See Also

rbs Reverse Broken Stick algorithm

check.pDrift to interactively check drift dive weightings

pDrift to calculate drift rate and probability weightings for drift dive detection

fitDrate To fit state-space model to weighted data to estimate drift rate change over time

Other Drift dive functions: check.pDrift(), fitDrate(), pDrift(), rbs()

Examples

1
2
3
4
5
6
7
rbs(data=dive, num=100, n.bs=4)
dive <- rbs(data=dive, num=NA, n.bs=4)
dive <- pDrift(dive)
fit <- fitDrate(dive, prefilter=0.01)
fit2 <- fitDrate(dive, weight='rRes*span*dWt', prefilter=0.01)
fitPlot(fit)
fitPlot(fit2, add=T, fitCol=3)

embiuw/drifteR documentation built on March 1, 2021, 6:40 a.m.