Last data update: 2014.03.03

R: Basic plots of data and output
PSM.plotR Documentation

Basic plots of data and output

Description

Create basic plots of data and state estimates in PSM.

Usage

  PSM.plot(Data, Smooth = NULL, indiv = NULL, type = NULL)

Arguments

Data

Data list, see description in PSM.estimate.

Smooth

Output from PSM.smooth.

indiv

A vector of integers with which individuals to include.

type

A vector of strings listing the types of plots to create. The possibilities are:

‘Y’

Observations

‘U’

Input

‘X’

Simulated states at sample times

‘longX’

Simulated states with time increment deltaTime

‘Xp’

Predicted states

‘Xf’

Filtered states

‘Xs’

Smoothed states

‘Yp’

Response based on predicted state

‘Ys’

Response based on smoothed state

‘Yp.Y’

As above with observations added

‘Ys.Y’

As above with observations added

‘res’

Residuals (Y-Yp)

‘acf’

Auto-correlation of residuals

‘eta’

Shows estimates of random effects in plot. If Smooth is not given it will show the value of simulated random effects if they are contained in Data.

If a string is preceeded by ‘logx.’, ‘logy.’ or ‘logx.logy.’ the corresponding axis is shown on log-scale.

An example is: type=c('Xs','logy.Ys.Y','res','eta')

Value

None (invisible NULL).

Note

For further details please also read the package vignette pdf-document by writing vignette("PSM") in R.

Author(s)

Stig B. Mortensen and S<c3><b8>ren Klim

References

Please visit http://www.imm.dtu.dk/psm or refer to the help page for PSM.

See Also

PSM, PSM.estimate, PSM.smooth, PSM.simulate, PSM.template

Examples

cat("\nExamples are included in the package vignette.\n")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(PSM)
Loading required package: MASS
Loading required package: numDeriv
Loading required package: deSolve

Attaching package: 'deSolve'

The following object is masked from 'package:graphics':

    matplot

Loading required package: ucminf
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/PSM/PSM.plot.Rd_%03d_medium.png", width=480, height=480)
> ### Name: PSM.plot
> ### Title: Basic plots of data and output
> ### Aliases: PSM.plot
> ### Keywords: htest models multivariate ts
> 
> ### ** Examples
> 
> cat("\nExamples are included in the package vignette.\n")

Examples are included in the package vignette.
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>