R/plotcases_function.R

Defines functions plotcases

Documented in plotcases

#' @title plotcases
#' @description Plots just the cases data.
#' @param data The data frame with cases.
plotcases <- function(data){

  p <- ggplot(data=data, aes_string('time'))+
    geom_line(aes_string(y='cases'),colour='dodgerblue',size=1) +
    theme_bw() + theme(legend.position = "none") +
    xlab('year')+ylab('cases')


  return(p)
}

Try the tsiR package in your browser

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

tsiR documentation built on Jan. 21, 2021, 1:06 a.m.