R/generics.R

Defines functions plot.xpsg

#' @method plot xpsg
#' @export

plot.xpsg <- function(x, ...){

  doy <- NULL
  width_pred <- NULL
  key <- NULL

  p1 <- ggplot(x[[1]], aes(x = doy, y = width_pred, col = key)) +
        geom_line() + facet_grid(.~method)

  return(p1)

}

Try the rTG package in your browser

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

rTG documentation built on May 12, 2022, 5:05 p.m.