R/Facetplot.R

Defines functions Facet_plot

#' Take any two columns and plot them in a histogram
#' 
#' @param data (Data you are wanting to use) 
#' @param col1 (1 of the columns selected from the data you are using)
#' @param col2 (Another column from the data you are using)
#' @export
#'
Facet_plot <- function(data, col1, col2){
  surveys <- ggplot(data, aes(x = {{col1}}, y= {{col2}})) +
    geom_point() +
    facet_grid()
  return(surveys)
}
Hallmark97/R_package_hallmark documentation built on Dec. 17, 2021, 10:28 p.m.