Skip to content

Commit 1f49ade

Browse files
committed
remove unrelated example
1 parent e88b402 commit 1f49ade

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

R/annotation-borders.R

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@
1515
#' @export
1616
#' @examples
1717
#' if (require("maps")) {
18-
#'
19-
#' ia <- map_data("county", "iowa")
20-
#' mid_range <- function(x) mean(range(x))
21-
#' seats <- do.call(rbind, lapply(split(ia, ia$subregion), function(d) {
22-
#' data.frame(lat = mid_range(d$lat), long = mid_range(d$long), subregion = unique(d$subregion))
23-
#' }))
24-
#'
25-
#' ggplot(ia, aes(long, lat)) +
26-
#' geom_polygon(aes(group = group), fill = NA, colour = "grey60") +
27-
#' geom_text(aes(label = subregion), data = seats, size = 2, angle = 45)
28-
#' }
29-
#'
30-
#' if (require("maps")) {
3118
#' data(us.cities)
3219
#' capitals <- subset(us.cities, capital == 2)
3320
#' ggplot(capitals, aes(long, lat)) +

man/annotation_borders.Rd

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

0 commit comments

Comments
 (0)