knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

ggopenstreetmap

This package is under heavy development; do not use!

An experimental package to plot OpenStreetMap tiles with geom_sf().

Installation

devtools::install_github("yutannihilation/ggopenstreetmap")

Example

library(ggplot2)
library(ggopenstreetmap)

nc <- sf::st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE)

ggplot(nc) +
  annotation_osm(nc) +
  geom_sf(aes(fill = AREA), alpha = 0.5)


yutannihilation/ggopenstreetmap documentation built on May 21, 2019, 12:22 p.m.