Skip to contents

Create an object inheriting from the "ggplot" class showing the quantile regression curves (i.e. the threshold curves) against the date.

Usage

# S3 method for rqTList
autoplot(object, lastFullYear = TRUE, ...)

Arguments

object

The rqTList object.

lastFullYear

Logical. If TRUE the prediction will be computed only on the last full year of the data used in the fit. See predict.rqTList.

...

Arguments passed to geom_line such as linetype, size.

Examples

if (FALSE) { 
    RqRennes <- rqTList(dailyMet = Rennes)
    g <- autoplot(RqRennes) 
    stat <- findStationMF("bordeaux-me")
    ## you may here have to use `Sys.setenv(metData = xxx)`
    Bordeaux <- readMet(stat)
    RqBordeaux <- rqTList(dailyMet = Bordeaux)
    g <- g + autolayer(RqBordeaux, linetype = "dashed", size = 1.2) +
         ggtitle(paste0("Quantile regression for Rennes (solid thin line) ",
                        "and Bordeaux (dashed thick line)"))
    g
}