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