Examples for 'ggthemes::theme_map'


Clean theme for maps

Aliases: theme_map

Keywords:

### ** Examples

library("maps")
library("ggplot2")

us <- fortify(map_data("state"), region = "region")
gg <- ggplot() +
  geom_map(data  =  us, map = us,
             aes(x = long, y = lat, map_id = region, group = group),
             fill = "white", color = "black", size = 0.25) +
  coord_map("albers", lat0 = 39, lat1 = 45) +
  theme_map()
Warning: Ignoring unknown aesthetics: x, y
gg
Error in `mproject()`:
! The package "mapproj" is required for `coord_map()`

[Package ggthemes version 4.2.4 Index]