-
Notifications
You must be signed in to change notification settings - Fork 17
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
plot: annual estimates vs year #138
Comments
@aappling-usgs which plot has flow normalized concentrations? Laura mentioned in a comment that the flow normalized lines won't show up with the current implementation. Her comment on #131 Jan 5 at 3:28 pm: "Flow-normalized lines don't show up, I'm not sure if we want to figure out a generalized way to do flow normalized for non-EGRET stuff, but maybe...." |
Again, just piecing all of this together. You can pass in that stuff yourself, too. Did you want to make plotFlowNorm a default? It might be confusing to change what the default EGRET settings are. Especially since we want them to rely on those for everything else. You can accomplish what you're saying by adding it to our existing function:
|
I bet we could alter EGRET's aggregating function for our own use. Laura is gone this week, but I can make a PR with suggested changes. (1) we just need to make the data.frames compatible. (2) we add an argument to Examples of aggregating data in both # aggregate in EGRET:
eList <- Choptank_eList
Daily <- getDaily(eList)
AnnualResults <- setupYears(Daily, 4, 10)
# aggregate in loadflex
metadata_example <- updateMetadata(exampleMetadata(), dates="date")
preds_example <- data.frame(fit=abs(rnorm(365, 5, 2)), se.pred=abs(rnorm(365, 1, 0.2)),
date=seq(as.Date("2018-05-15"), as.Date("2019-05-14"), by=as.difftime(1, units="days")))
aggregateSolute(preds_example, metadata=metadata_example, format="conc", agg.by="month") |
|
There is a function called |
OK, thanks for looking |
these plots are not among Rich's requested plots, but they're available through EGRET. two issues regarding the current implementation:
can we take out the flow normalized concentrations with plotFlowNorm=FALSE? normalization isn't currently available through loadflex, though i hope we might eventually get there.
loadflex also does the load aggregation required to come up with annual estimates, and it may make slightly different assumptions than EGRET does. Would there be a way to make it so that we pass in the aggregated values from loadflex rather than relying on EGRET to do it? see
aggregateSolute
The text was updated successfully, but these errors were encountered: