Closed Rekyt closed 5 months ago
This bug is caused by the following line: https://github.com/FRBCesab/funbiogeo/blob/497d97a96b24dce6cec6325095d46e96f4876211/R/fb_get_trait_coverage_by_site.R#L44
Which normally assumes that we only get a row for species which have all known traits. Species with NA traits are silently dropped and not considered when computing coverage.
We should remedy this issue by thinking about how species with NA traits should be considered from the point of view of coverages.
Bug description
When some traits are all NAs the site-trait completeness plot bugs
Reproducible example
Created on 2024-04-07 with reprex v2.1.0