termPlot

Share:

Description

Plots the linear filter functions for a PointProcessModel.

Usage

1
2
3
## S4 method for signature 'PointProcessModel'
termPlot(model, alpha = 0.05, layer =
geom_line(), trans = NULL, confArg = list(fill = "blue", alpha = 0.2), ...)

Arguments

model

an object of class PointProcessModel.

alpha

a numeric. One minus the level of the pointwise confidence intervals. Default value 0.05. A value of 1 means no confidence intervals.

layer

a proto object specifying a ggplot2 layer. Default layer geom_line().

trans

a function or character string. The function used to transform the linear filter functions before plotting.

confArg

a list. Determines the color of confidence bands.

...

other arguments.

Details

The (estimated) linear filter functions in the PointProcessModel are extracted and plotted. Approximate pointwise level 1-alpha confidence intervals are also plotted.

Setting trans to exp, the linear filters are exponentiated before plotting. This particular transformation is relevant for the log-link function, as this will then provide the multiplicative effect of the filter on the intensity as an alternative to the log-additive effect.

Value

A ggplot object.

Author(s)

Niels Richard Hansen, Niels.R.Hansen@math.ku.dk

See Also

PointProcessModel, pointProcessModel, ggplot

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.