X-Git-Url: https://git.auder.net/?p=talweg.git;a=blobdiff_plain;f=pkg%2FR%2Fplot.R;fp=pkg%2FR%2Fplot.R;h=465b6066d34f18ffed1000246a0f1ba8f65d6423;hp=2b7411763b21dfe0877cc16268c63131265fd7ee;hb=9e0f25f6d5c73008c0ad59ea7b7e097b342f26b3;hpb=638f27f4296727aff62b56643beb9f42aa5b57ef diff --git a/pkg/R/plot.R b/pkg/R/plot.R index 2b74117..465b606 100644 --- a/pkg/R/plot.R +++ b/pkg/R/plot.R @@ -172,8 +172,8 @@ computeFilaments <- function(data, pred, index, predict_from, limit=60, plot=TRU ref_serie = c( data$getCenteredSerie( pred$getIndexInData(index)-1 ), data$getCenteredSerie( pred$getIndexInData(index) ) ) centered_series = rbind( - data$getCenteredSeries( pred$getParams(index)$indices ), - data$getCenteredSeries( pred$getParams(index)$indices+1 ) ) + data$getCenteredSeries( pred$getParams(index)$indices-1 ), + data$getCenteredSeries( pred$getParams(index)$indices ) ) yrange = range( ref_serie, quantile(centered_series, probs=c(0.025,0.975), na.rm=TRUE) ) par(mar=c(4.7,5,1,1), cex.axis=1.5, cex.lab=1.5, lwd=2)