Skip to content

Instantly share code, notes, and snippets.

@cararthompson
Created June 10, 2025 18:26
Show Gist options
  • Select an option

  • Save cararthompson/cb29a8c7544b2b502c48c5b8b032172a to your computer and use it in GitHub Desktop.

Select an option

Save cararthompson/cb29a8c7544b2b502c48c5b8b032172a to your computer and use it in GitHub Desktop.
penguin_df <- palmerpenguins::penguins_raw |>
janitor::clean_names() |>
dplyr::filter(!is.na(culmen_length_mm))
penguin_df |>
ggplot() +
geom_jitter(
aes(
x = culmen_length_mm,
y = species,
fill = species,
size = body_mass_g
),
shape = 21,
width = 0,
height = 0.15
) +
theme_minimal(base_size = 16) +
theme(legend.position = "bottom")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment