Skip to content

Instantly share code, notes, and snippets.

@summerofgeorge
Created December 9, 2024 17:37
Show Gist options
  • Save summerofgeorge/5c72b8adaf408d8ed1d73ba15afd75e0 to your computer and use it in GitHub Desktop.
Save summerofgeorge/5c72b8adaf408d8ed1d73ba15afd75e0 to your computer and use it in GitHub Desktop.
Faceted boxplot plotnine
(ggplot(penguins_df, aes(x='sex', y='bill_length_mm', fill='species'))
+ geom_boxplot()
+ facet_wrap('~species')
+ labs(title="Bill Length by Sex and Species",
x="Sex",
y="Bill Length (mm)")
+ theme_classic())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment