R/describe_axis.R

#' Change axis labels in a given plot.
#' 
#' @param x_axis The text for the x-axis.
#' @param y_axis The text for the y-axis.
#' @param plot Name of plot you want to implement changes.


describe_axis <- function(x_axis, y_axis, plot){
  y <- y_axis
  x <- x_axis
  plot +
    xlab(x)+
    ylab(y)
}
Nicolabo/PERUanalytics documentation built on May 7, 2019, 6:18 p.m.