Mercurial > repos > rhpvorderman > shm_csr
diff plot_pdf.r @ 0:64d74ba01a7c draft
"planemo upload commit 78d1fae87dbcf490e49a9f99e7a06de7328e16d4"
| author | rhpvorderman |
|---|---|
| date | Wed, 27 Oct 2021 12:34:47 +0000 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plot_pdf.r Wed Oct 27 12:34:47 2021 +0000 @@ -0,0 +1,17 @@ +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) +}
