R/loonGrob_l_ts.R

Defines functions loonGrob.l_ts

Documented in loonGrob.l_ts

#' @rdname loonGrob
#'
#'
#' @examples
#'
#' \dontrun{
#'
#' ## Time series decomposition examples
#'
#' decompose <- decompose(co2)
#' # or decompose <- stl(co2, "per")
#' p <- l_plot(decompose, title = "Atmospheric carbon dioxide over Mauna Loa")
#'
#' # To print directly use either
#' plot(p)
#' # or
#' grid.loon(p)
#' # or to save structure
#' lgrob <- loonGrob(p)
#' grid.newpage()
#' grid.draw(lgrob)
#' }
#'
#' @export
loonGrob.l_ts <- function(target, name = NULL, gp = NULL, vp = NULL){
    loonGrob.l_compound(target,
                        name = if (!is.null(name)) name else "time series decomposition",
                        gp = gp, vp = vp)
}

Try the loon package in your browser

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

loon documentation built on June 14, 2021, 9:07 a.m.