R/pdf_fxn.R

Defines functions pngfun

#' PNG figure funtion

#' @param wd location to save figure
#' @param file plot name
#' @param w figure width
#' @param h figure height in inches
#' @param pt point size
#' @authorwritten by Chantel Wetzel
pngfun <- function(wd, file,w=7,h=7,pt=12){
  file <- file.path(wd, file)
  cat('writing PNG to',file,'\n')
  png(filename=file,
      width=w,height=h,
      units='in',res=300,pointsize=pt)
}
chantelwetzel-noaa/HandyCode documentation built on July 22, 2020, 10:52 a.m.