Skip to content

Fix plot bmtr#248

Open
ethanplunkett wants to merge 6 commits into
mainfrom
fix-plot_bmtr
Open

Fix plot bmtr#248
ethanplunkett wants to merge 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.
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