You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current plot method in plot.bfast shows the components one by one, but there is no way to plot everything in one plot. It would be very convenient to have that.
Here's a small snippet of my custom code that produces pretty nice results:
MyTS= bfastts(ChangedEVITS[9,], dates, "10-day") # Some time seriesMyTS= na.approx(MyTS) # This step is optional, just for break-free visualisationMyBF= bfast(MyTS, GetBreakNumber(dates), season="harmonic", max.iter=3)
MyIter= length(MyBF$output)
MyFit=MyBF$output[[MyIter]]$St+MyBF$output[[MyIter]]$TtMyTrend=MyBF$output[[MyIter]]$TtMyTimes= as.numeric(time(MyBF$output[[MyIter]]$Tt))
MyTimes=MyTimes[!is.na(MyBF$output[[MyIter]]$Tt)]
MyBreaks=MyTimes[MyBF$output[[MyIter]]$bp.Vt$breakpoints]
plot(MyTS); lines(MyFit, col="blue"); lines(MyTrend, col="green"); abline(v=MyBreaks, col="red")
Sample output:
What's missing is a legend. Suggestions are also welcome!
The text was updated successfully, but these errors were encountered:
The current plot method in
plot.bfast
shows the components one by one, but there is no way to plot everything in one plot. It would be very convenient to have that.Here's a small snippet of my custom code that produces pretty nice results:
Sample output:
What's missing is a legend. Suggestions are also welcome!
The text was updated successfully, but these errors were encountered: