Skip to content

Fix plot bmtr - #248

Merged
ethanplunkett merged 6 commits into
mainfrom
fix-plot_bmtr
Jun 18, 2026
Merged

ethanplunkett merged 6 commits into
mainfrom
fix-plot_bmtr

Conversation

@ethanplunkett

Copy link
Copy Markdown
Contributor

Fix bugs with plot_bmtr(), add ability to crop, and change plot aesthetics slightly.

…tor PR

Accepted contributor changes: BMTR (birds/km) default label, crop_bbox
parameter, zero-cells → NA with na.value=transparent, white as first
gradient color, sort() on transitions, length(transitions) > 1 operator
precedence fix, theme_void() with explicit white backgrounds.

Fixed/rejected:
- Add droplevels() after subset filter so facet_wrap drops excluded
  transitions rather than showing empty panels
- Fix character subset validation: names(transitions) (always NULL) →
  transitions; fix typo in error message
- Revert exists("suppress_specific_warnings") guard — function is always
  present as a package internal
- Remove hardcoded annotation_borders("state") — US-only, maps not in
  DESCRIPTION
- Use crs(bf) in coord_sf calls instead of sf::st_crs(bf$geom$crs)
- Strip developer-note inline comments

Add @PARAM crop_bbox to roxygen. Add test verifying subset produces
no empty facets for both numeric and character subset forms.
@ethanplunkett
ethanplunkett merged commit ebd75e6 into main Jun 18, 2026
8 checks passed
@ethanplunkett
ethanplunkett deleted the fix-plot_bmtr branch July 27, 2026 14:10
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

Successfully merging this pull request may close these issues.

1 participant