-
Notifications
You must be signed in to change notification settings - Fork 6
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
facet_warp/_grid-friendly idw grid outputs #28
Comments
…fied years/grouping variables. #28.
@EmilyMarkowitz-NOAA I added a function to the slope branch called make_idw_stack(). The changes were not as simple as modifying the code in the section you highlighted in make_idw_map() because I needed to maintain the automatic breaks functionality (causes more issues than using manual breaks). The new function only returns a subset of the objects returned by make_idw_map becuase map_layers, extrapolation.stack, continuous.stack, region, and crs, but can return both sf and stars objects. I've included an example of how to run the function below. Can you check that it does what you wanted for this feature? I still need to test the function, clean the code up a bit, and potentially add some additional documentation before merging w/ main.
|
Closed by #31 |
The
make_idw_map()
function is great for producing one map's worth of map elements and plot. However, I am often tasked with plotting multiple maps in a multi-panel plot (by year example below). To do this, I currently run themake_idw_map()
function for a subset of data, and extract theextrapolation.grid
andcontinuous.grid
from each run's output so I can plot of the all grids usingfacet_wrap( ~ year)
.It may be helpful to develop a function that produces the IDW for each data subset outside of
make_idw_map()
(essentially replacing this section of the function code). Additionally, it could be useful to allow the user to define asubset
orgroup
variable in this new function that (though it would typically be year) could allow the user to systematically iterate through different and multiple criteria (e.g., species, length class bin).This may be overexplaining, a proposed workflow may look something like this (not run):
The text was updated successfully, but these errors were encountered: