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

fpr_create_hydrograph #60

Open
7 tasks done
NewGraphEnvironment opened this issue Feb 21, 2024 · 2 comments
Open
7 tasks done

fpr_create_hydrograph #60

NewGraphEnvironment opened this issue Feb 21, 2024 · 2 comments

Comments

@NewGraphEnvironment
Copy link
Owner

NewGraphEnvironment commented Feb 21, 2024

#59 20240221

  1. wonderful start. some of below might already be done. reviewing multiple commits so easy to miss
  • 2. make "fig/hydrology_stats_" and the other output a param (look for examples of dir_stub_out naming conventions in other functions - not sure if there is any). remove ./ from front filepath (not necessary)
  • 3. call all functions explicitly (ex. tidyr::tidyhat_info)
  • 4. make sure all funcitons are @importFrom (done I think)
  • 5. call the hydrograph1_stats_caption for both outputs using a message so it prints to the console and can be pasted into the chunk header. Use cli for message as per new rfp funcitons or as per fpr_dbq function method
  • 6. remove the hashed out flow_UDR text. Test the other hashed out text to see if it is helpful. guessing not. Can prob remove. if looks really helpful lets leave and make note of how we might include in issue (if with param calls maybe)
  • 7. make in function sanity tests to give informative error messages to the user. Use chk from Poisson when possible and see examples in https://github.com/NewGraphEnvironment/fpr/blob/main/R/fpr_sp_assign_sf_from_utm.R
  • 8. change the name of the R file so it does not start with a t
@lucy-schick
Copy link
Collaborator

A static version of this function (sfpr_create_hydrograph) has been added to staticimports here https://github.com/NewGraphEnvironment/staticimports/blob/ng/inst/staticexports/ng_fpr.R#L64

@lucy-schick
Copy link
Collaborator

A more up to date version of this function with quartiles can now be found here https://github.com/NewGraphEnvironment/nrp_vis_2024/blob/main/0600-nutrient-loading.Rmd#L410C1-L471C4.

Moving forward we should:

  • update this function to include quartiles with the code above,
  • and potentially move out of fpr

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

2 participants