R/Barplot.R

Defines functions Barplot

library(ggplot2)

Barplot <- function(data, x.var){
  x.var <- rlang::sym(quo_name(enquo(x.var)))
  ggp <- ggplot(data = dat,
                aes(x = !! x.var)) +
    geom_bar()
  return(ggp)
}
AliSajid/clinalyzeR documentation built on April 24, 2022, 12:11 a.m.