From e7bc2af6e930ac5ecaac0e9b4207a49e463edddc Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Tue, 25 Apr 2017 15:35:22 +0200 Subject: [PATCH] fix mistake; perfs not as good as expected. Why? --- pkg/R/plot.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/R/plot.R b/pkg/R/plot.R index 2cfaf36..2b74117 100644 --- a/pkg/R/plot.R +++ b/pkg/R/plot.R @@ -83,7 +83,7 @@ plotError <- function(err, cols=seq_along(err)) plotPredReal <- function(data, pred, index) { prediction = pred$getForecast(index) - measure = data$getSerie( pred$getIndexInData(index) )[length(prediction)] + measure = data$getSerie( pred$getIndexInData(index) )[1:length(prediction)] yrange = range(measure, prediction) par(mar=c(4.7,5,1,1), cex.axis=1.5, cex.lab=1.5, lwd=3) plot(measure, type="l", ylim=yrange, xlab="Time (hours)", ylab="PM10") -- 2.44.0