Skip to content

Conversation

grantmcdermott
Copy link
Owner

@grantmcdermott grantmcdermott commented Sep 25, 2025

Fixes #497

devtools::load_all()
library("gapminder")

with(
  subset(gapminder, year == 2007),
  plt(
    x = gdpPercap, y = lifeExp,
    by = continent, facet = continent,
    pch = 21, bg = 0.4,
    cex = pop, clim = c(0.5, 3.5),
    main = "Gapminder!",
    theme = "clean"
  )
)
gap2

@grantmcdermott
Copy link
Owner Author

Need to update the tests (which are failing b/c of this precise issue). Will try to do tomorrow.

- only drop  the zero case after the rescaled cex have been mapped to legend labs
@grantmcdermott grantmcdermott changed the title Drop minimum zero level for bubble legend Bubble legend: drop smallest category if zero Sep 25, 2025
@grantmcdermott grantmcdermott merged commit b6cc698 into main Sep 25, 2025
3 checks passed
@grantmcdermott grantmcdermott deleted the bubble_zero branch September 25, 2025 17:32
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.

Bubble plot should drop "0" levels in legend
1 participant