From aea913df9448694d2f6d2435a934a80222801de2 Mon Sep 17 00:00:00 2001 From: S'busiso Mkhondwane Date: Sat, 23 Jul 2016 20:49:19 +0200 Subject: [PATCH] Update visualize.Rmd (#182) changed "This defines how variables in your dataset and mapped to..." to "This defines how variables in your dataset are mapped to..." --- visualize.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visualize.Rmd b/visualize.Rmd index 020fb6d..40132d3 100644 --- a/visualize.Rmd +++ b/visualize.Rmd @@ -67,7 +67,7 @@ With ggplot2, you begin a plot with the function `ggplot()`. `ggplot()` creates You complete your graph by adding one or more layers to `ggplot()`. The function `geom_point()` adds a layer of points to your plot, which creates a scatterplot. ggplot2 comes with many geom functions that each add a different type of layer to a plot. You'll learn a whole bunch of them through out this chapter. -Each geom function in ggplot2 takes a `mapping` argument. This defines how variables in your dataset and mapped to visual properties. You must always use `mapping()` in conjunction with `aes()`. The `x` and `y` arguments of `aes()` describe which variables to map to the x and y axes of your plot, and ggplot2 will look for those variables in your dataset, `mpg`. +Each geom function in ggplot2 takes a `mapping` argument. This defines how variables in your dataset are mapped to visual properties. You must always use `mapping()` in conjunction with `aes()`. The `x` and `y` arguments of `aes()` describe which variables to map to the x and y axes of your plot, and ggplot2 will look for those variables in your dataset, `mpg`. Let's turn this code into a reusable template for making graphs with ggplot2. To make a graph, replace the bracketed sections in the code below with a dataset, a geom function, or a set of mappings.