From 8c596307f3bb6d11a080e85f9222675d803e5f43 Mon Sep 17 00:00:00 2001 From: 0solarfox0 Date: Wed, 25 Oct 2023 13:06:43 -0700 Subject: [PATCH] Typo (#1581) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change: "Note that we’re mapping the density the y,..." to: "Note that we’re mapping the density to y,..." --- EDA.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EDA.qmd b/EDA.qmd index 720d271..725349d 100644 --- a/EDA.qmd +++ b/EDA.qmd @@ -372,7 +372,7 @@ ggplot(diamonds, aes(x = price, y = after_stat(density))) + geom_freqpoly(aes(color = cut), binwidth = 500, linewidth = 0.75) ``` -Note that we're mapping the density the `y`, but since `density` is not a variable in the `diamonds` dataset, we need to first calculate it. +Note that we're mapping the density to `y`, but since `density` is not a variable in the `diamonds` dataset, we need to first calculate it. We use the `after_stat()` function to do so. There's something rather surprising about this plot - it appears that fair diamonds (the lowest quality) have the highest average price!