Learn R Programming

spTDyn (version 2.0.3)

plot.spTD: Plots for spTDyn output.

Description

This function is used to obtain MCMC summary, residual and fitted surface plots.

Usage

# S3 method for spTD
plot(x, residuals=FALSE, coefficient=NULL, ...)

##

Arguments

x

Object of class inheriting from "spTD".

residuals

If TRUE then plot residual vs. fitted and normal qqplot of the residuals. If FALSE then plot MCMC samples of the parameters using coda package. Defaults value is FALSE.

coefficient

Takes values: "spatial", "temporal" and "rho" for summary statistics of spatial, temporal and rho coefficients respectively. If NULL then provides parameter plots without spatial and temporal coefficients.

...

Other arguments.

See Also

GibbsDyn.

Examples

Run this code
if (FALSE) {
##

plot(out) # where out is the output from spT class
plot(out, residuals=TRUE) # where out is the output from spT class
plot(out, coefficient="spatial") # for spatially varying coefficients

##
}

Run the code above in your browser using DataLab