From 25d0c9b083ec54c8d773e463732ebf7610afe99a Mon Sep 17 00:00:00 2001 From: hadley Date: Wed, 3 May 2017 07:52:03 -0500 Subject: [PATCH] Add missing word. Fixes #470 --- visualize.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visualize.Rmd b/visualize.Rmd index 96fd7c9..b54d684 100644 --- a/visualize.Rmd +++ b/visualize.Rmd @@ -479,7 +479,7 @@ The algorithm used to calculate new values for a graph is called a __stat__, sho knitr::include_graphics("images/visualization-stat-bar.png") ``` -You can learn which stat a geom uses by inspecting the default value for the `stat` argument. For example, `?geom_bar` shows the default value for `stat` is "count", which means that `geom_bar()` uses `stat_count()`. `stat_count()` is documented on the same page as `geom_bar()`, and if you scroll down you can find a section called "Computed variables". That tells that it computes two new variables: `count` and `prop`. +You can learn which stat a geom uses by inspecting the default value for the `stat` argument. For example, `?geom_bar` shows that the default value for `stat` is "count", which means that `geom_bar()` uses `stat_count()`. `stat_count()` is documented on the same page as `geom_bar()`, and if you scroll down you can find a section called "Computed variables". That tells that it computes two new variables: `count` and `prop`. You can generally use geoms and stats interchangeably. For example, you can recreate the previous plot using `stat_count()` instead of `geom_bar()`: