plot.mcmcSTmodel: Plots for an 'mcmcSTmodel' object

Description Usage Arguments Details Value Author(s) See Also Examples

Description

plot method for class mcmcSTmodel.

Usage

1
2
## S3 method for class 'mcmcSTmodel'
plot(x, y = "like", add = FALSE, main = NULL, ...)

Arguments

x

mcmcSTmodel object to plot.

y

Type of plot, options are "like", "alpha", or name/index number of a parameter.

add

Add to existing plot using lines

main

Parameter passed as main to plot, defaults to the parameter-name if not given.

...

Additional parameters passed to plot or lines

Details

Plots results from MCMC.STmodel. Either parameter paths or the log-likelihood for the mcmc simulations.

Value

Nothing

Author(s)

Johan Lindstrom

See Also

Other mcmcSTmodel methods: MCMC.STmodel, density.mcmcSTmodel, plot.density.mcmcSTmodel, print.mcmcSTmodel, print.summary.mcmcSTmodel, summary.mcmcSTmodel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
##load MCMC results instead
data(MCMC.mesa.model)

##plot the log-likelihood
plot(MCMC.mesa.model, ylab="", xlab="", type="l")

##and MCMC tracks for four of the parameters
par(mfrow=c(4,1),mar=c(2,2,2.5,.5))
for(i in c(4,9,13,15)){
  plot(MCMC.mesa.model, i, ylab="", xlab="", type="l")
}

##or by name
par(mfrow=c(1,1),mar=c(2,2,2.5,.5))
plot(MCMC.mesa.model, "nu.log.range.exp", ylab="", xlab="", type="l",
     main="all range estimates", ylim=c(-14,10))
##all ranges in one plot
plot(MCMC.mesa.model, "log.range.const.exp", add=TRUE, col=2)
plot(MCMC.mesa.model, "log.range.V1.exp", add=TRUE, col=3)
plot(MCMC.mesa.model, "log.range.V2.exp", add=TRUE, col=4)

SpatioTemporal documentation built on May 2, 2019, 8:49 a.m.