plot.CTMCdive: Plot fitted CTMCdive model

View source: R/ctmc_dive.R

plot.CTMCdiveR Documentation

Plot fitted CTMCdive model

Description

Plot models fitted by CTMCdive.

Usage

## S3 method for class 'CTMCdive'
plot(
  x,
  quant = 1,
  pick = NULL,
  pred = NULL,
  xlim = NULL,
  se = FALSE,
  n_samp = 200,
  pch = 19,
  cex = 0.6,
  ...
)

Arguments

x

fitted CTMCdive model x

quant

the quantile to plot the observed data up to, for example if set to 0.95 then only the durations up to the 95% quantile are plotted (prevents outliers dominating the plot)

pick

if not NULL then either "dive" or "surface" if only want a plot of one of the fitted processes

pred

if predicted means already computed can supply them here rather than have them recomputed

xlim

limits for x axis if you want to restrict range

se

display uncertainty bands around the lines (takes time to compute)

n_samp

number of posterior samples to use if se=TRUE, otherwise ignored

...

unused (for S3 compatability)

Value

plots of dive and surface durations or only one of if "pick" is specified


r-glennie/CTMCdive documentation built on July 3, 2023, 11:01 p.m.