This function prints figure to pdf or png.
printPdfPng(
figure = NULL,
dir = getwd(),
filename = "plot",
width = 13,
height = 9,
pdfpng = "png",
transparent = F
)
Default=NULL. Figure to be printed
Default = getwd(). Directory to print figure
Default = "plot". File name
Default=13.
Default=9.
Default="png". Either "pdf" or "png"
Default=F
Prints out graphic