R/overlay.R

Defines functions overlay

Documented in overlay

overlay <- function(modelList = NULL, showLegend = TRUE, Cols = NULL, ...){
    
    if(is.null(modelList))
        stop("You just provided an empty list.")
    isValid <- sapply(modelList, function(tmp) inherits(tmp, "nplr"))

    if(!all(isValid))
        stop(sprintf("model #%s is not an instance of class 'nplr'", which(!isValid)))
    
    .multiCurve(modelList, showLegend, Cols, ...)
}

Try the nplr package in your browser

Any scripts or data that you put into this service are public.

nplr documentation built on April 3, 2025, 7:11 p.m.