annotate plot_pdf.r @ 98:d714f5ea83d7 draft default tip

planemo upload commit 1a01065a084a817382872154f779b94090a35ebf
author rhpvorderman
date Wed, 10 Jan 2024 12:32:47 +0000
parents b6f9a640e098
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
81
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
1 library(ggplot2)
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
2
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
3 args <- commandArgs(trailingOnly = TRUE)
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
4 print(args)
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
5
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
6 input = args[1]
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
7 outputdir = args[2]
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
8 setwd(outputdir)
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
9
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
10 load(input)
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
11
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
12 print(names(pdfplots))
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
13
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
14 for(n in names(pdfplots)){
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
15 print(paste("n:", n))
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
16 ggsave(pdfplots[[n]], file=n)
b6f9a640e098 Uploaded
davidvanzessen
parents:
diff changeset
17 }