diff --git a/R/position-.r b/R/position-.r index e5df22e653..fda4a4bd97 100644 --- a/R/position-.r +++ b/R/position-.r @@ -30,7 +30,7 @@ #' Used to setup defaults that need to complete dataset, and to inform #' the user of important choices. Should return list of parameters. #' - `setup_data(data, params)`: called once for each layer, -#' after `setp_params()`. Should return modified `data`. +#' after `setup_params()`. Should return modified `data`. #' Default checks that required aesthetics are present. #' #' And the following fields diff --git a/R/stat-.r b/R/stat-.r index 61c4dfff38..7556b0a5d8 100644 --- a/R/stat-.r +++ b/R/stat-.r @@ -38,7 +38,7 @@ #' Used to setup defaults that need to complete dataset, and to inform #' the user of important choices. Should return list of parameters. #' - `setup_data(data, params)`: called once for each layer, -#' after `setp_params()`. Should return modified `data`. +#' after `setup_params()`. Should return modified `data`. #' Default methods removes all rows containing a missing value in #' required aesthetics (with a warning if `!na.rm`). #' - `required_aes`: A character vector of aesthetics needed to diff --git a/man/ggplot2-ggproto.Rd b/man/ggplot2-ggproto.Rd index 552b8b2991..4b344b866d 100644 --- a/man/ggplot2-ggproto.Rd +++ b/man/ggplot2-ggproto.Rd @@ -324,7 +324,7 @@ values rather than the values that are mapped to the aesthetic. Used to setup defaults that need to complete dataset, and to inform the user of important choices. Should return list of parameters. \item \code{setup_data(data, params)}: called once for each layer, -after \code{setp_params()}. Should return modified \code{data}. +after \code{setup_params()}. Should return modified \code{data}. Default methods removes all rows containing a missing value in required aesthetics (with a warning if \code{!na.rm}). \item \code{required_aes}: A character vector of aesthetics needed to @@ -366,7 +366,7 @@ to the individual panels. \code{params} contains the parameters returned by Used to setup defaults that need to complete dataset, and to inform the user of important choices. Should return list of parameters. \item \code{setup_data(data, params)}: called once for each layer, -after \code{setp_params()}. Should return modified \code{data}. +after \code{setup_params()}. Should return modified \code{data}. Default checks that required aesthetics are present. }