plot.secrgam: Plot fitted density surface or detection function

Description Usage Arguments Details See Also Examples

Description

Plot the fitted density surface or fitted detection function from an secrgam model.

Usage

1
2
3
## S3 method for class 'secrgam'
plot(fit, type = c("default", "density", "smooth"),
  mask = NULL, ...)

Arguments

fit

a fitted secrgam or secr model

type

the type of plot to produce (see Details)

mask

an optional mask object to use when type = "density"

...

aditional arguments to pass to the relevant ploting function

Details

type plotting function
"default" plot.secr
"density" prep4image
"smooth" plotDgam

See Also

fitted.secrgam

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data(Boland.leopards1)
data(Boland.fits1)
op = par(no.readonly = TRUE)
par(mfrow = c(1,2), oma = c(0,0,0,0), mar = c(4,4,4,4))

# density surface
plot(fit1.a3.dW3,type="density",asp=1,key=FALSE,col=tim.colors(30))
# plot detection function
plot(fit1.a3.dW3,xval=seq(0,11000,length=100), main = "Density")

# plot smooths
plot(fit1.a3.dW3,type="smooth")

par(op)

david-borchers/secrgam documentation built on May 14, 2019, 9:30 p.m.