diff options
author | Jan Huwald <jh@sotun.de> | 2012-05-07 20:01:51 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2012-05-07 20:01:51 (GMT) |
commit | 420d2ef464d4a741028e132e662d5626806a41f5 (patch) | |
tree | 1aca6eb512e4ed0fb5f3c10c528cb998b6ffd695 /R/hist.R |
Diffstat (limited to 'R/hist.R')
-rwxr-xr-x | R/hist.R | 12 |
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); +} |