X-Git-Url: https://git.auder.net/?p=talweg.git;a=blobdiff_plain;f=pkg%2FR%2Fplot.R;h=2b7411763b21dfe0877cc16268c63131265fd7ee;hp=2cfaf360be0b95a46fad894b8a242073d897eb98;hb=e7bc2af6e930ac5ecaac0e9b4207a49e463edddc;hpb=3fd7377d1a3c33eb45803e43aab4e47b1c9f03f8 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")