R/outlierPlot.r

# Wrapper function for outlier plots
outlierPlot <- function(y, L, mode="qq", ...)
{
   if ( mode=="residual" & L$method != "Method II" )
      stop("residual plot is only available for Method II")
   
   switch(mode,
      qq = qqFitPlot(y, L, ...),
      residual = plotMethodII(y, L, ...),
      stop("Plot mode not recognized")
      )

}
cannin/extremevalues documentation built on May 12, 2019, 5:22 p.m.