view plot_pdf.r @ 44:716622f5bb4f draft

Uploaded
author davidvanzessen
date Tue, 11 Apr 2017 08:10:55 -0400
parents 77a7ac76c7b9
children
line wrap: on
line source

library(ggplot2)

args <- commandArgs(trailingOnly = TRUE)
print(args)

input = args[1]
outputdir = args[2]
setwd(outputdir)

load(input)

print(names(pdfplots))

for(n in names(pdfplots)){
    print(paste("n:", n))
    ggsave(pdfplots[[n]], file=n)
}