From 98853960cd94d1190bd4cea1d6d370d2c2134aaf Mon Sep 17 00:00:00 2001 From: "Y. Yu" <54338793+PursuitOfDataScience@users.noreply.github.com> Date: Tue, 4 Jan 2022 10:24:14 -0500 Subject: [PATCH 1/2] Update data.R No need to add `\` before `$`. --- R/data.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/data.R b/R/data.R index 02bac2071d..543b7554e4 100644 --- a/R/data.R +++ b/R/data.R @@ -5,7 +5,7 @@ #' #' @format A data frame with 53940 rows and 10 variables: #' \describe{ -#' \item{price}{price in US dollars (\$326--\$18,823)} +#' \item{price}{price in US dollars ($326--$18,823)} #' \item{carat}{weight of the diamond (0.2--5.01)} #' \item{cut}{quality of the cut (Fair, Good, Very Good, Premium, Ideal)} #' \item{color}{diamond colour, from D (best) to J (worst)} From 447ef4c278e6580e284d801eb4f1a30f967df952 Mon Sep 17 00:00:00 2001 From: hadley Date: Mon, 14 Mar 2022 22:06:07 +0000 Subject: [PATCH 2/2] Document --- man/aes.Rd | 4 ++-- man/diamonds.Rd | 2 +- man/geom_bin_2d.Rd | 1 + man/vars.Rd | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/man/aes.Rd b/man/aes.Rd index 8ef690c287..3a890f2d7f 100644 --- a/man/aes.Rd +++ b/man/aes.Rd @@ -32,11 +32,11 @@ R names to ggplot names (e.g., \code{pch} to \code{shape} and \code{cex} to \cod \section{Quasiquotation}{ -\code{aes()} is a \link[rlang:nse-defuse]{quoting function}. This means that +\code{aes()} is a \link[rlang:topic-defuse]{quoting function}. This means that its inputs are quoted to be evaluated in the context of the data. This makes it easy to work with variables from the data frame because you can name those directly. The flip side is that you have -to use \link[rlang:nse-force]{quasiquotation} to program with +to use \link[rlang:topic-inject]{quasiquotation} to program with \code{aes()}. See a tidy evaluation tutorial such as the \href{https://dplyr.tidyverse.org/articles/programming.html}{dplyr programming vignette} to learn more about these techniques. } diff --git a/man/diamonds.Rd b/man/diamonds.Rd index 7c3be09436..bd01798c24 100644 --- a/man/diamonds.Rd +++ b/man/diamonds.Rd @@ -7,7 +7,7 @@ \format{ A data frame with 53940 rows and 10 variables: \describe{ -\item{price}{price in US dollars (\$326--\$18,823)} +\item{price}{price in US dollars ($326--$18,823)} \item{carat}{weight of the diamond (0.2--5.01)} \item{cut}{quality of the cut (Fair, Good, Very Good, Premium, Ideal)} \item{color}{diamond colour, from D (best) to J (worst)} diff --git a/man/geom_bin_2d.Rd b/man/geom_bin_2d.Rd index 131d24942f..97f6a67eb8 100644 --- a/man/geom_bin_2d.Rd +++ b/man/geom_bin_2d.Rd @@ -100,6 +100,7 @@ in the presence of overplotting. \item \strong{\code{y}} \item \code{fill} \item \code{group} +\item \code{weight} } Learn more about setting these aesthetics in \code{vignette("ggplot2-specs")}. } diff --git a/man/vars.Rd b/man/vars.Rd index 9310562346..0b8c3f110f 100644 --- a/man/vars.Rd +++ b/man/vars.Rd @@ -12,7 +12,7 @@ evaluated in the context of the data to form faceting groups. Can be named (the names are passed to a \link[=labellers]{labeller}).} } \description{ -Just like \code{\link[=aes]{aes()}}, \code{vars()} is a \link[rlang:nse-defuse]{quoting function} +Just like \code{\link[=aes]{aes()}}, \code{vars()} is a \link[rlang:topic-defuse]{quoting function} that takes inputs to be evaluated in the context of a dataset. These inputs can be: \itemize{