diff --git a/R/geom_cartogram.r b/R/geom_cartogram.r index bbac09e..6c674ac 100644 --- a/R/geom_cartogram.r +++ b/R/geom_cartogram.r @@ -6,7 +6,7 @@ #' @section Aesthetics: #' \code{geom_cartogram} understands the following aesthetics (required aesthetics are in bold): #' \itemize{ -#' \item \code{\strong{map_id}} +#' \item \code{map_id} #' \item \code{alpha} #' \item \code{colour} #' \item \code{fill} @@ -24,7 +24,7 @@ #' \code{y}, \code{lat} or \code{latitude} and \code{region} or \code{id}. #' @inheritParams ggplot2::layer #' @inheritParams ggplot2::geom_point -#' @examples +#' @examples \dontrun{ #' # When using geom_polygon, you will typically need two data frames: #' # one contains the coordinates of each polygon (positions), and the #' # other the values associated with each polygon (values). An id @@ -77,6 +77,7 @@ #' coord_map("polyconic") + #' facet_wrap( ~ variable) #' } +#' } geom_cartogram <- function(mapping = NULL, data = NULL, stat = "identity", ..., diff --git a/man/geom_cartogram.Rd b/man/geom_cartogram.Rd index c5b6735..d9f1869 100644 --- a/man/geom_cartogram.Rd +++ b/man/geom_cartogram.Rd @@ -60,7 +60,7 @@ This replicates the old behaviour of \code{geom_map()}, enabling specifying of \code{geom_cartogram} understands the following aesthetics (required aesthetics are in bold): \itemize{ - \item \code{\strong{map_id}} + \item \code{map_id} \item \code{alpha} \item \code{colour} \item \code{fill} @@ -73,6 +73,7 @@ This replicates the old behaviour of \code{geom_map()}, enabling specifying of } \examples{ +\dontrun{ # When using geom_polygon, you will typically need two data frames: # one contains the coordinates of each polygon (positions), and the # other the values associated with each polygon (values). An id @@ -126,3 +127,4 @@ if (require(maps)) { facet_wrap( ~ variable) } } +}