summaryrefslogtreecommitdiff
path: root/R/hist.R
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2012-05-07 20:01:51 (GMT)
committerJan Huwald <jh@sotun.de>2012-05-07 20:01:51 (GMT)
commit420d2ef464d4a741028e132e662d5626806a41f5 (patch)
tree1aca6eb512e4ed0fb5f3c10c528cb998b6ffd695 /R/hist.R
Initial commitHEADmaster
Diffstat (limited to 'R/hist.R')
-rwxr-xr-xR/hist.R12
1 files changed, 12 insertions, 0 deletions
diff --git a/R/hist.R b/R/hist.R
new file mode 100755
index 0000000..b04ae8e
--- /dev/null
+++ b/R/hist.R
@@ -0,0 +1,12 @@
+files = commandArgs(trailingOnly=TRUE);
+if (length(files) < 2) {
+ quit();
+}
+
+png(files[1]);
+par(mfcol=(2, ceiling((length(files)-1)/2)));
+
+for (f in files[2:length(files)) {
+ x = read.table(f, sep="\t")[[2]];
+ hist(x);
+}
contact: Jan Huwald // Impressum