Browse Source

fix latex errors

tags/v0.4.0
boB Rudis 7 years ago
parent
commit
6a7ee32433
  1. 5
      R/geom_cartogram.r
  2. 4
      man/geom_cartogram.Rd

5
R/geom_cartogram.r

@ -6,7 +6,7 @@
#' @section Aesthetics: #' @section Aesthetics:
#' \code{geom_cartogram} understands the following aesthetics (required aesthetics are in bold): #' \code{geom_cartogram} understands the following aesthetics (required aesthetics are in bold):
#' \itemize{ #' \itemize{
#' \item \code{\strong{map_id}} #' \item \code{map_id}
#' \item \code{alpha} #' \item \code{alpha}
#' \item \code{colour} #' \item \code{colour}
#' \item \code{fill} #' \item \code{fill}
@ -24,7 +24,7 @@
#' \code{y}, \code{lat} or \code{latitude} and \code{region} or \code{id}. #' \code{y}, \code{lat} or \code{latitude} and \code{region} or \code{id}.
#' @inheritParams ggplot2::layer #' @inheritParams ggplot2::layer
#' @inheritParams ggplot2::geom_point #' @inheritParams ggplot2::geom_point
#' @examples #' @examples \dontrun{
#' # When using geom_polygon, you will typically need two data frames: #' # When using geom_polygon, you will typically need two data frames:
#' # one contains the coordinates of each polygon (positions), and the #' # one contains the coordinates of each polygon (positions), and the
#' # other the values associated with each polygon (values). An id #' # other the values associated with each polygon (values). An id
@ -77,6 +77,7 @@
#' coord_map("polyconic") + #' coord_map("polyconic") +
#' facet_wrap( ~ variable) #' facet_wrap( ~ variable)
#' } #' }
#' }
geom_cartogram <- function(mapping = NULL, data = NULL, geom_cartogram <- function(mapping = NULL, data = NULL,
stat = "identity", stat = "identity",
..., ...,

4
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): \code{geom_cartogram} understands the following aesthetics (required aesthetics are in bold):
\itemize{ \itemize{
\item \code{\strong{map_id}} \item \code{map_id}
\item \code{alpha} \item \code{alpha}
\item \code{colour} \item \code{colour}
\item \code{fill} \item \code{fill}
@ -73,6 +73,7 @@ This replicates the old behaviour of \code{geom_map()}, enabling specifying of
} }
\examples{ \examples{
\dontrun{
# When using geom_polygon, you will typically need two data frames: # When using geom_polygon, you will typically need two data frames:
# one contains the coordinates of each polygon (positions), and the # one contains the coordinates of each polygon (positions), and the
# other the values associated with each polygon (values). An id # other the values associated with each polygon (values). An id
@ -126,3 +127,4 @@ if (require(maps)) {
facet_wrap( ~ variable) facet_wrap( ~ variable)
} }
} }
}

Loading…
Cancel
Save