Skip to contents

Autoplot an object with call "poisGPBayes".

Usage

# S3 method for poisGPBayes0
autoplot(object,
         which = c("RL", "pp"),
         level = 0.70,
         points = c("H", "p", "none"), a = 0.5,
         allPoints = FALSE,
         trace = 0, ...)

Arguments

object

An object with class "poisGPBayes" describing inference results for a Poisson-GP model.

which

The type of plot wanted.

level

Credible level(s).

points, a, allPoints

autoplot.poisGP.

trace

Integer level of verbosity.

...

Further arguments passed to RL.

Value

An object with class "gg" inheriting from

"ggplot" which is typically used through the

print method.

Examples

## ========================================================================
## Use the Garonne data from Renext
## ========================================================================
fitBayes <- poisGPBayes(data = Garonne$OTdata$Flow,
                        threshold = 2500,
                        effDuration = Garonne$OTinfo$effDuration)
#> Warning: 'threshold' is smaller than the smallest observation

## ========================================================================
## S3 methods: Return Levels, ...
## ========================================================================
RLBayes <- RL(fitBayes)
autoplot(fitBayes)            ## nearly the same plot
#> Warning: Since 'data' has class "potData" the formal arguments 'effDuration', 'nOT', 'MAX.*' and 'OTS.*' are ignored
#> Warning: 'threshold' is smaller than the smallest observation
#> Scale for x is already present.
#> Adding another scale for x, which will replace the existing scale.