-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRutils.R
More file actions
21 lines (17 loc) · 718 Bytes
/
Rutils.R
File metadata and controls
21 lines (17 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env Rscript
# Dom Smith <dosmith@cern.ch>
library('lattice', warn.conflicts = FALSE, quietly = TRUE)
library('latticeExtra', warn.conflicts = FALSE, quietly = TRUE)
library('grid', warn.conflicts = FALSE, quietly = TRUE)
library('RColorBrewer', warn.conflicts = FALSE, quietly = TRUE)
library('methods', warn.conflicts = FALSE, quietly = TRUE)
library('colorspace', warn.conflicts = FALSE, quietly = TRUE)
##__________________________________________________________________||
save.figure.png <- function(fig, id, outDir, width=4, height=4)
{
dir.create(file.path(outDir,''), showWarnings = FALSE)
outPath <- file.path(outDir, paste(id,".png",sep=""))
print(outPath)
png(file=outPath)
dev.off()
}