Mercurial > repos > ecology > regionalgam_flight_curve
annotate autocorr-res-acf.R @ 0:fff507f00b2b draft default tip
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/regionalgam commit ffe42225fff8992501b743ebe2c78e50fddc4a4e
author | ecology |
---|---|
date | Thu, 20 Jun 2019 04:03:07 -0400 |
parents | |
children |
rev | line source |
---|---|
0
fff507f00b2b
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/regionalgam commit ffe42225fff8992501b743ebe2c78e50fddc4a4e
ecology
parents:
diff
changeset
|
1 #!/usr/bin/env Rscript |
fff507f00b2b
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/regionalgam commit ffe42225fff8992501b743ebe2c78e50fddc4a4e
ecology
parents:
diff
changeset
|
2 args = commandArgs(trailingOnly=TRUE) |
fff507f00b2b
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/regionalgam commit ffe42225fff8992501b743ebe2c78e50fddc4a4e
ecology
parents:
diff
changeset
|
3 load(args[1]) |
fff507f00b2b
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/regionalgam commit ffe42225fff8992501b743ebe2c78e50fddc4a4e
ecology
parents:
diff
changeset
|
4 |
fff507f00b2b
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/regionalgam commit ffe42225fff8992501b743ebe2c78e50fddc4a4e
ecology
parents:
diff
changeset
|
5 png('output-acf.png',width = 480, height = 480, units = "px") |
fff507f00b2b
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/regionalgam commit ffe42225fff8992501b743ebe2c78e50fddc4a4e
ecology
parents:
diff
changeset
|
6 graph<-acf(residuals(mod,type="normalized"),plot=FALSE) |
fff507f00b2b
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/regionalgam commit ffe42225fff8992501b743ebe2c78e50fddc4a4e
ecology
parents:
diff
changeset
|
7 plot(graph, main="Acf residuals") |
fff507f00b2b
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/regionalgam commit ffe42225fff8992501b743ebe2c78e50fddc4a4e
ecology
parents:
diff
changeset
|
8 invisible(dev.off()) |
fff507f00b2b
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/regionalgam commit ffe42225fff8992501b743ebe2c78e50fddc4a4e
ecology
parents:
diff
changeset
|
9 sink("output-acf.txt") |
fff507f00b2b
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/regionalgam commit ffe42225fff8992501b743ebe2c78e50fddc4a4e
ecology
parents:
diff
changeset
|
10 print(graph) |