This function prints figure to pdf or png.

printPdfPng(
  figure = NULL,
  dir = getwd(),
  filename = "plot",
  width = 13,
  height = 9,
  pdfpng = "png",
  transparent = F
)

Arguments

figure

Default=NULL. Figure to be printed

dir

Default = getwd(). Directory to print figure

filename

Default = "plot". File name

width

Default=13.

height

Default=9.

pdfpng

Default="png". Either "pdf" or "png"

transparent

Default=F

Value

Prints out graphic