inst/examples/pdf_eps.R

# make a pdf or eps based on a switch

pdf <- function(filename, width, height, type = "pdf", ...) {
  if(type == "pdf")
    pdf(paste0(filename, ".pdf"), width = width, height = height, ...)
  if(type == "eps") {
    postscript(paste0(filename, ".eps"), horizontal = FALSE, onefile = FALSE, paper =
      "special", width = width, height = height, ...)
  }
}

Try the metafolio package in your browser

Any scripts or data that you put into this service are public.

metafolio documentation built on Oct. 21, 2023, 1:06 a.m.