diff autocorr-res-acf.R @ 0:a79f5f0f17ad 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:02:41 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/autocorr-res-acf.R	Thu Jun 20 04:02:41 2019 -0400
@@ -0,0 +1,10 @@
+#!/usr/bin/env Rscript
+args = commandArgs(trailingOnly=TRUE)
+load(args[1])
+
+png('output-acf.png',width = 480, height = 480, units = "px")
+graph<-acf(residuals(mod,type="normalized"),plot=FALSE)
+plot(graph, main="Acf residuals")
+invisible(dev.off())
+sink("output-acf.txt")
+print(graph)