Fix units for body mass

Fixes #1170
This commit is contained in:
Hadley Wickham 2022-12-06 13:10:24 -06:00
parent fc5c2044e8
commit 375dab4f5a
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g)) +
title = "Body mass and flipper length",
subtitle = "Dimensions for Adelie, Chinstrap, and Gentoo Penguins",
x = "Flipper length (mm)",
y = "Body mass (mm)",
y = "Body mass (g)",
color = "Species",
shape = "Species"
)
@ -326,7 +326,7 @@ ggplot(penguins,
title = "Body mass and flipper length",
subtitle = "Dimensions for Adelie, Chinstrap, and Gentoo Penguins",
x = "Flipper length (mm)",
y = "Body mass (mm)",
y = "Body mass (g)",
color = "Species",
shape = "Species"
)