Skip to content

Commit 9457cda

Browse files
committed
reduce examples of coord_map so it runs faster on 32bit windows cran machine
1 parent a5bacdc commit 9457cda

File tree

2 files changed

+4
-42
lines changed

2 files changed

+4
-42
lines changed

R/coord-map.r

+2-21
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,10 @@
5757
#'
5858
#' if (require("maps")) {
5959
#' # Other projections
60-
#' nzmap + coord_map("cylindrical")
61-
#' }
62-
#'
63-
#' if (require("maps")) {
6460
#' nzmap + coord_map("azequalarea", orientation = c(-36.92, 174.6, 0))
6561
#' }
6662
#'
6763
#' if (require("maps")) {
68-
#' nzmap + coord_map("lambert", parameters = c(-37, -44))
69-
#' }
70-
#'
71-
#' if (require("maps")) {
7264
#' states <- map_data("state")
7365
#' usamap <- ggplot(states, aes(long, lat, group = group)) +
7466
#' geom_polygon(fill = "white", colour = "black")
@@ -83,39 +75,27 @@
8375
#' }
8476
#'
8577
#' if (require("maps")) {
86-
#' usamap + coord_quickmap()
87-
#' }
88-
#'
89-
#' if (require("maps")) {
9078
#' # See ?mapproject for coordinate systems and their parameters
9179
#' usamap + coord_map("gilbert")
9280
#' }
9381
#'
9482
#' if (require("maps")) {
95-
#' usamap + coord_map("lagrange")
96-
#' }
97-
#'
98-
#' if (require("maps")) {
9983
#' # For most projections, you'll need to set the orientation yourself
10084
#' # as the automatic selection done by mapproject is not available to
10185
#' # ggplot
10286
#' usamap + coord_map("orthographic")
10387
#' }
10488
#'
10589
#' if (require("maps")) {
106-
#' usamap + coord_map("stereographic")
107-
#' }
108-
#'
109-
#' if (require("maps")) {
11090
#' usamap + coord_map("conic", lat0 = 30)
11191
#' }
11292
#'
11393
#' if (require("maps")) {
11494
#' usamap + coord_map("bonne", lat0 = 50)
11595
#' }
11696
#'
97+
#' \dontrun{
11798
#' if (require("maps")) {
118-
#'
11999
#' # World map, using geom_path instead of geom_polygon
120100
#' world <- map_data("world")
121101
#' worldmap <- ggplot(world, aes(x = long, y = lat, group = group)) +
@@ -136,6 +116,7 @@
136116
#' # Centered on New York (currently has issues with closing polygons)
137117
#' worldmap + coord_map("ortho", orientation = c(41, -74, 0))
138118
#' }
119+
#' }
139120
coord_map <- function(projection="mercator", ..., parameters = NULL, orientation = NULL, xlim = NULL, ylim = NULL, clip = "on") {
140121
if (is.null(parameters)) {
141122
params <- list(...)

man/coord_map.Rd

+2-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)