From 375dab4f5a5d03e661e7f3b55dee51300cae5961 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Tue, 6 Dec 2022 13:10:24 -0600 Subject: [PATCH] Fix units for body mass Fixes #1170 --- data-visualize.qmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-visualize.qmd b/data-visualize.qmd index cfc0a78..36656e5 100644 --- a/data-visualize.qmd +++ b/data-visualize.qmd @@ -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" )