Slide 21
Slide 21 text
「オスの方がメスよりわずかに大きい」?
penguins_raw |>
drop_na(Sex) |>
ggplot(aes(x = Sex, y = `Body Mass (g)`)) +
geom_violin(aes(colour=Sex, fill = Sex)) +
geom_boxplot(width = 0.3) +
geom_jitter(width = 0.15, height = 0) +
facet_wrap(vars(Species)) +
labs(
title = "性別と体重",
x = "性別",
y = "体重 (g)",
colour = "性別",
fill = "性別"
) +
theme(text = element_text(size = 18))