diff --git a/R/fortify-map.r b/R/fortify-map.r index 81463f79e6..99950d5310 100644 --- a/R/fortify-map.r +++ b/R/fortify-map.r @@ -39,16 +39,16 @@ fortify.map <- function(model, data, ...) { #' Create a data frame of map data #' -#' Easily turn data from the \pkg{maps} package in to a data frame suitable +#' Easily turn data from the \pkg{maps} package into a data frame suitable #' for plotting with ggplot2. #' -#' @param map name of map provided by the \pkg{maps} package. These +#' @param map name of map provided by the \pkg{maps} package. These #' include [maps::county()], [maps::france()], #' [maps::italy()], [maps::nz()], #' [maps::state()], [maps::usa()], #' [maps::world()], [maps::world2()]. -#' @param region name of subregions to include. Defaults to `.` which -#' includes all subregion. See documentation for [maps::map()] +#' @param region name(s) of subregion(s) to include. Defaults to `.` which +#' includes all subregions. See documentation for [maps::map()] #' for more details. #' @param exact should the `region` be treated as a regular expression #' (`FALSE`) or as a fixed string (`TRUE`). @@ -82,8 +82,8 @@ map_data <- function(map, region = ".", exact = FALSE, ...) { #' Create a layer of map borders #' -#' This is a quick and dirty way to get map data (from the maps package) -#' on to your plot. This is a good place to start if you need some crude +#' This is a quick and dirty way to get map data (from the \pkg{maps} package) +#' onto your plot. This is a good place to start if you need some crude #' reference lines, but you'll typically want something more sophisticated #' for communication graphics. #' diff --git a/man/borders.Rd b/man/borders.Rd index 98b2261f17..5dd532e372 100644 --- a/man/borders.Rd +++ b/man/borders.Rd @@ -69,8 +69,8 @@ a warning. If \code{TRUE}, missing values are silently removed.} }} } \description{ -This is a quick and dirty way to get map data (from the maps package) -on to your plot. This is a good place to start if you need some crude +This is a quick and dirty way to get map data (from the \pkg{maps} package) +onto your plot. This is a good place to start if you need some crude reference lines, but you'll typically want something more sophisticated for communication graphics. } diff --git a/man/map_data.Rd b/man/map_data.Rd index 895dcb83c5..943283dd41 100644 --- a/man/map_data.Rd +++ b/man/map_data.Rd @@ -7,14 +7,14 @@ map_data(map, region = ".", exact = FALSE, ...) } \arguments{ -\item{map}{name of map provided by the \pkg{maps} package. These +\item{map}{name of map provided by the \pkg{maps} package. These include \code{\link[maps:county]{maps::county()}}, \code{\link[maps:france]{maps::france()}}, \code{\link[maps:italy]{maps::italy()}}, \code{\link[maps:nz]{maps::nz()}}, \code{\link[maps:state]{maps::state()}}, \code{\link[maps:usa]{maps::usa()}}, \code{\link[maps:world]{maps::world()}}, \code{\link[maps:world2]{maps::world2()}}.} -\item{region}{name of subregions to include. Defaults to \code{.} which -includes all subregion. See documentation for \code{\link[maps:map]{maps::map()}} +\item{region}{name(s) of subregion(s) to include. Defaults to \code{.} which +includes all subregions. See documentation for \code{\link[maps:map]{maps::map()}} for more details.} \item{exact}{should the \code{region} be treated as a regular expression @@ -23,7 +23,7 @@ for more details.} \item{...}{all other arguments passed on to \code{\link[maps:map]{maps::map()}}} } \description{ -Easily turn data from the \pkg{maps} package in to a data frame suitable +Easily turn data from the \pkg{maps} package into a data frame suitable for plotting with ggplot2. } \examples{