Learn R Programming

foieGras (version 0.6-7)

plot.fG_ssm: plot

Description

visualize multiple fits from an fG compound tibble

Usage

# S3 method for fG_ssm
plot(x, what = c("fitted", "predicted"), type = 1, ncol = 1, ...)

Arguments

x

a foieGras ssm fit object with class `fG_ssm`

what

specify which location estimates to display on time-series plots: fitted or predicted

type

of plot to generate: 1-d time series for lon and lat separately (type = 1, default) or 2-d track plot (type = 2)

ncol

number of columns to use for faceting. Default is ncol = 1 but this may be increased for multi-individual fit objects

...

additional arguments to be ignored

Value

a ggplot object with either: (type = 1) 1-d time series of fits to data, separated into x and y components (units = km) with prediction uncertainty ribbons (2 x SE); or (type = 2) 2-d fits to data (units = km)

Examples

Run this code
# NOT RUN {
## load example foieGras fit object (to save time)
data(fssm)
plot(fssm, what = "f", type = 1)
plot(fssm, what = "p", type = 2)

# }

Run the code above in your browser using DataLab