Skip to contents

Autoplot a list of RL tables, generally using the same data or using different data but sharing some observations.

Usage

# S3 method for RL.poisGPList
autoplot(object, ...)

Arguments

object

A list of Return Level tables, with class "RL.poisGPList".

...

Not used yet.

Value

A ggplot graphics object.

Examples

u <- seq(from = 2610, to = 3000, length.out = 4)
fits <- RLs <-  list()
for (iu in seq_along(u)) {
    fits[[iu]] <- poisGP(data = Garonne$OTdata$Flow,
                         effDuration = Garonne$OTinfo$effDuration,
                         MAX.data = list("hist" = Garonne$MAXdata$Flow),
                         MAX.effDuration = Garonne$MAXinfo$duration,
                         threshold = u[iu])
    RLs[[iu]] <- RL(fits[[iu]], conf = "prof", out = "data")
}
names(fits) <- names(RLs) <- paste("thresh =",  u)

## force the S3 class of the result 
class(RLs) <- "RL.poisGPList"
autoplot(RLs) + theme_gray() +
   ggtitle("Return level plots for Garonne and several thresholds")