Learn R Programming

lgcp (version 1.3-8)

plot.lgcpPredict: plot.lgcpPredict function

Description

Simple plotting function for objects of class lgcpPredict.

Usage

## S3 method for class 'lgcpPredict':
plot(x, type = "relrisk", sel = 1:x$EY.mean$len,
  plotdata = TRUE, ask = TRUE, clipWindow = TRUE, ...)

Arguments

x
an object of class lgcpPredict
type
Character string: what type of plot to produce. Choices are "relrisk" (=exp(Y)); "serr" (standard error of relative risk); or "intensity" (=lambda*mu*exp(Y)).
sel
vector of integers between 1 and grid$len: which grids to plot. Default NULL, in which case all grids are plotted.
plotdata
whether or not to overlay the data
ask
logical; if TRUE the user is asked before each plot
clipWindow
whether to plot grid cells outside the observation window
...
additional arguments passed to image.plot

Value

  • plots the Monte Carlo mean of quantities obtained via simulation. By default the mean relative risk is plotted.

See Also

lgcpPredict