contourmap.colors: Define a color map for displaying contour maps.

Description Usage Arguments Value Author(s) Examples

View source: R/contourutil.R

Description

contourmap.colors calculates suitable colours for displaying contour maps.

Usage

1
contourmap.colors(lp, zlim, col, credible.col)

Arguments

lp

A contourmap calculated by contourmap, contourmap.inla, or contourmap.mc

zlim

The range that should be used (optional). The default is the range of the mean value function used when creating the contourmap.

col

The colormap that the colours should be taken from.

credible.col

The color that should be used for displaying the credible regions for the contour curves (optional).

Value

A color map.

Author(s)

David Bolin davidbolin@gmail.com

Examples

1
2
3
4
5
6
n = 10
Q = Matrix(toeplitz(c(1, -0.5, rep(0, n-2))))
map <- contourmap(mu = seq(-5, 5, length=n),Q,n.levels = 2,
                  compute=list(F=FALSE),max.threads=1)
cols = contourmap.colors(map, col=heat.colors(100, 1),
                         credible.col = grey(0.5, 1))

finnlindgren/excursions documentation built on Jan. 17, 2021, 12:20 a.m.