Skip to content
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

gwl_area_plot(): Change scale breaks for wells with short records #28

Open
steffilazerte opened this issue Aug 30, 2018 · 5 comments
Open

Comments

@steffilazerte
Copy link
Collaborator

For gwl_area_plot(), perhaps consider changing the x axis to yearly breaks when there are fewer than 10 years (or fewer than 6 years) of well data? This isn't a very common occurrence, but would improve the legibility of those figures.

I'm more than happy to create a pull request if you think this would be a good thing to include.

@stephhazlitt
Copy link
Member

Great idea! Maybe you could add to your PR #27?

@steffilazerte
Copy link
Collaborator Author

Done!

@stephhazlitt
Copy link
Member

@steffilazerte @ateucher—so I have figured out why I have not encountered this too much, the SoE trend analysis criteria requires a minimum of 10 years data for the Mann-Kendall. That said, there are quite a few with 10-20 years data where the breaks are minimal (e.g. 11 years). Maybe we should this to fewer than 12 (or even 15) years?

@stephhazlitt stephhazlitt reopened this Sep 21, 2018
@steffilazerte
Copy link
Collaborator Author

That seems logical. There's only one number to change in the function, so it'd be an easy fix, as long as the 1-year breaks still look okay with 15 years of data. Alternatively we could change the if_else function to a case_when function to get at intermediate ranges.

I.e. perhaps:

  • 0-10 years -> 1-year breaks
  • 10-20 years -> 2-year breaks
  • 20+ years -> 3-year breaks

This change is still relevant to wells with < 10 years of data, as the plotting function creates a figure for all data sets, it just doesn't put the trend on it.

@stephhazlitt
Copy link
Member

I'll plot up some examples and see how 1-year breaks look with more years of data. If too busy, maybe I'll offer some more options via case_when. Great suggestions @steffilazerte.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants