Closed Rekyt closed 1 year ago
For now, I've only implemented it in fb_plot_species_traits_completeness()
and it retains the previous behavior.
library("funbiogeo")
fb_plot_species_traits_completeness(species_traits)
fb_plot_species_traits_completeness(
species_traits,
data.frame(species = species_traits$species,
category = rep(letters[c(1, 2, 4)], each = 50)[-1])
)
Created on 2023-05-17 with reprex v2.0.2
One question I have for fb_plot_number_species_by_trait()
and all the functions with thresholds: should the threshold be the same across facets (which is the case now?) or if it's a percent, should be compared to the values in the facets?
Patch coverage: 100.00
% and no project coverage change.
Comparison is base (
16ce86a
) 100.00% compared to head (135f4ee
) 100.00%.:exclamation: Current head 135f4ee differs from pull request most recent head 30450b8. Consider uploading reports for the commit 30450b8 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Let's close this for now, these remain to be done in a future PR:
One question I have for
fb_plot_number_species_by_trait()
and all the functions with thresholds: should the threshold be the same across facets (which is the case now?) or if it's a percent, should be compared to the values in the facets?
I would say it can be interesting to use an additional argument for that. This way the user can choose one amon the two options.
This PR is a WIP to implement species categories (see #15) across
funbiogeo
especially the plotting function.For now, I have the impression that it complexifies significantly the code. But there may be more efficient ways to do so. I'll progress plot function per plot function.
Current implementation in plotting functions:
fb_map_raster()not applicablefb_map_site_data()not applicablefb_plot_site_environment()not applicablefb_table_trait_summary()not applicable