R/savePlot.R

#' Save Plot
#' This function saves all plots in the path/PlotName provided.
#'
#' @param  PlotName,myPlot
#' @keywords
#' @export
#' @examples
#'
#'
#' savePlot(PlotName,myPlot)
savePlot <- function(PlotName,myPlot) {
  pdf(PlotName)
  print(myPlot)
  dev.off()
}
MaliniChatterjee/bms3 documentation built on May 14, 2019, 2:01 p.m.