plot: Plot methods for 'spatPomp' objects

plotR Documentation

Plot methods for spatPomp objects

Description

Visualize data in a spatPomp object or a derived class. This gives a quick view; the data can be extracted from the object to make a customized plot.

Usage

## S4 method for signature 'spatPomp'
plot(x, type = c("l", "h"), log = FALSE, plot_unit_names = TRUE, ...)

## S4 method for signature 'igirfd_spatPomp'
plot(x, params = names(coef(x)), ncol = 3)

Arguments

x

a spatPomp object

type

for visualizing an object of class spatPomp, the user can obtain a grid of line plots by default (l) or a heat map by supplying argument h.

log

should the data be transformed to log10(x+1) before plotting? This helps in contexts where there are spikes that could take away attention from the dynamics illustrated by the rest of the data.

plot_unit_names

allows suppression of unit names when making a heat map for a large number of units

...

for visualizing an object of class spatPomp, the user can add arguments like nrow to specify the number of rows in the grid.

params

allows selection of a subset of parameters when making a diagnostic plot for a model with many parameters

ncol

the number of columns in the grid plot

Value

a ggplot plot of class ‘gg’ and ‘ggplot’.


kidusasfaw/spatPomp documentation built on Oct. 31, 2024, 8:05 a.m.