R/bar-plot.R

Defines functions barplot

barplot <- function(df){

   p <- df %>%
      ggplot2::ggplot(ggplot2::aes(dates, value, fill = variable)) +
      ggplot2::geom_bar(stat = 'identity', position = 'dodge') +
      ggplot2::scale_fill_manual(values = pam.pal())
   return(p)
}
davidallen02/pamr documentation built on July 25, 2020, 3:01 p.m.