plot4M: Plot objects of class 'Data4M' or 'Model4M'.

Description Usage Arguments Examples

Description

Plot objects of class Data4M or Model4M.

Usage

1
2
3
4
5
6
7
## S4 method for signature 'Data4M,character'
plot(x, y, ask = interactive(),
  Viterbi.Path = NA, N.States = 0, h = 0.25, ...)

## S4 method for signature 'Model4M,character'
plot(x, y, h = 0.25, ask = interactive(),
  palette = "Set1", ...)

Arguments

x

An object of class Data4M or Model4M.

y

A character vector choosing which plots to draw. Can be any combination of all, satellite, locations, data, and residuals. Defaults to all.

ask

Wait for input to switch to next plot?

Viterbi.Path

State path used to color locations. Not typically entered by the user.

N.States

The number of states used in the model. Not typically entered by the user.

h

Vector of bandwidth for residual density plots. See kde2d.

...

Optional arguments used to control internal plotting functions, such as pch or main. Other useful arguments include...

lag

For data lag-plot, which time lag should be used? Defaults to 1.

log

For data lag-plot, should the log of step lengths be used? Defaults to FALSE.

N.Grid.Lines

How many grid lines should be used for each axis in the mesh for the data plots? Defaults to 100.

N.Greys

What greyscale depth to use for density plots of the data. Defaults to 25.

palette

If using package RColorBrewer and not supplying col, the palette to use for colors.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
sealdata<- data4M(greyseal)
sealdata<- interpolate(sealdata,Time.Step = 1)
plot(sealdata,ask = F)
plot(sealdata,"data",log = T,lag = 2,N.Grid.Lines = 150,N.Greys = 30)
plot(sealdata,"locations",pch = 11,lty = 4,col = "red")

seal4M3<- fit(sealdata,N.States = 3)
plot(seal4M3,ask = F)
plot(seal4M3,"residuals")

library(RColorBrewer)
plot(seal4M3,"locations",palette = "Dark2")

lawlerem/markmodmover documentation built on Feb. 12, 2020, 8:30 p.m.