Skip to content

Commit feaa4bc

Browse files
heathgilhamHeath
andauthored
Fixed typo in map_data() documentation (#4278) (#4303)
Co-authored-by: Heath <heathgilham@gmail.com>
1 parent 9deb97b commit feaa4bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/fortify-map.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ fortify.map <- function(model, data, ...) {
6666
#' choro <- choro[order(choro$order), ]
6767
#' ggplot(choro, aes(long, lat)) +
6868
#' geom_polygon(aes(group = group, fill = assault)) +
69-
#' coord_map("albers", at0 = 45.5, lat1 = 29.5)
69+
#' coord_map("albers", lat0 = 45.5, lat1 = 29.5)
7070
#' }
7171
#'
7272
#' if (require("maps")) {
7373
#' ggplot(choro, aes(long, lat)) +
7474
#' geom_polygon(aes(group = group, fill = assault / murder)) +
75-
#' coord_map("albers", at0 = 45.5, lat1 = 29.5)
75+
#' coord_map("albers", lat0 = 45.5, lat1 = 29.5)
7676
#' }
7777
map_data <- function(map, region = ".", exact = FALSE, ...) {
7878
try_require("maps", "map_data")

man/map_data.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)