Learn R Programming

lgcp (version 1.8)

plotExceed.lgcpPredict: plotExceed.lgcpPredict function

Description

Function for plotting exceedance probabilities stored in lgcpPredict ojects.

Usage

# S3 method for lgcpPredict
plotExceed(
  obj,
  fun,
  nlevel = 64,
  ask = TRUE,
  plotcases = FALSE,
  mapunderlay = NULL,
  alpha = 1,
  ...
)

Arguments

obj

an object

fun

the name of the function used to compute exceedances (character vector of length 1). Note that the named function must be in memory.

nlevel

number of colour levels to use in plot, default is 64

ask

whether or not to ask for a new plot between plotting exceedances at different thresholds.

plotcases

whether or not to plot the cases on the map

mapunderlay

optional underlay to plot underneath maps of exceedance probabilities. Use in conjunction with rainbow parameter 'alpha' (eg alpha=0.3) to set transparency of exceedance layer.

alpha

graphical parameter takign values in [0,1] controlling transparency of exceedance layer. Default is 1.

...

additional arguments passed to image.plot

Value

plot of exceedances

See Also

lgcpPredict, MonteCarloAverage, setoutput

Examples

Run this code
# NOT RUN {
exceedfun <- exceedProbs(c(1.5,2,4))
# }
# NOT RUN {
    plot(lg,"exceedfun") # lg is an object of class lgcpPredict
                         # in which the Monte Carlo mean of
                         # "exceedfun" was computed
                         # see ?MonteCarloAverage and ?setoutput
# }

Run the code above in your browser using DataLab