plotTrace: Plot Trace of One or More Parameters of a Multi-scale...

View source: R/plotTrace.R

plotTraceR Documentation

Plot Trace of One or More Parameters of a Multi-scale Occupancy Model

Description

Plots the Markov chain for each of 1-4 parameters of a multi-scale occupancy model.

Usage

plotTrace(fit, paramName, burnin = 1)

Arguments

fit

object of class occModel that contains data and previous state of the model's Markov chain

paramName

vector of names of parameters to be plotted

burnin

initial no. iterations of Markov chain to be omitted from plot

Details

This function plots the Markov chain created by occModel for each of 1-4 parameters of a multi-scale occupancy model.

Examples

data(gobyDetectionData)
detections = occData(gobyDetectionData, "site", "sample")
fit = occModel(detectionMats=detections)
plotTrace(fit, 'beta.(Intercept)', burnin=100)
plotTrace(fit, c('beta.(Intercept)', 'alpha.(Intercept)', 'delta.(Intercept)'), burnin=100)

RobertDorazio/eDNAoccupancy documentation built on Sept. 5, 2023, 9:57 a.m.