Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new guide_circles() #35

Merged
merged 5 commits into from
Dec 13, 2024
Merged

Add new guide_circles() #35

merged 5 commits into from
Dec 13, 2024

Conversation

teunbrand
Copy link
Owner

This PR aims to fix #14.

devtools::load_all("~/packages/legendry/")
#> ℹ Loading legendry
#> Loading required package: ggplot2
library(gapminder)

df <- gapminder |>
  dplyr::filter(year == max(year))

ggplot(df, aes(gdpPercap, lifeExp, size = pop, fill = continent)) +
  geom_point(shape = 21) +
  scale_size_area(
    max_size = 20, 
    breaks = c(1e8, 4e8, 1e9), 
    labels = c("100M", "400M", "1B"),
    guide = guide_circles()
  )

Created on 2024-12-13 with reprex v2.1.1

@teunbrand teunbrand merged commit 3f76efd into main Dec 13, 2024
7 checks passed
@teunbrand teunbrand deleted the circles branch December 13, 2024 18:55
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.

tangent circle legend for size legend
1 participant