-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breakpoints and spatial plots when using bfastlite #111
Comments
Yes, you can run it spatially with |
I think the most important plots for my analysis are the number of break (I mean where are they located spatially, no matter the timing, magnitute etc), as well as the first break. So two plots. |
Hmm, first break as in the earliest break in the time series? Most users are more interested in the latest break. But both are easy to do, I can make some example code and then include it in the examples in the package. |
That would be great. I'm interested in the first break because I am using satellite nighttime lights data and I want to correlate the time of the lockdown to the breakpoint in TS. If that makes sense. Thank you. |
Here's a Jupyter Notebook showing how to do it: https://colab.research.google.com/drive/1M3ICmcomwE29U-4ux66M4nM9Vhczzwpb?usp=sharing I set it to output the last break, but you can easily get the first break by changing |
That's great, many thanks. I will check it this week on my dataset. Looking forward to the updated version in the examples in the package. If that's okay with you, I'd like to keep the post open until I test it on my dataset. |
Yeap, I'll keep it open until I put it into the examples. |
I am using the bfastlite function and I found some breaks in my time-series (TS) which I can plot (in a line graph) using the plot() function. I was wondering if there is a way to plot the breaks spatially (i.e., pixel(s)). I think you discussed this in #5 .
Is there any updates or a workaround rgarding #5 ? My code:
How can I plot the location (i.e., pixels) of the breakpoints? You can download the dataset from my GoogleDrive. The entire code runs in less than 10 seconds.
Windows 11, R 4-3-2, RStudio 2023.12.0 Build 369.
The text was updated successfully, but these errors were encountered: