tilemap_ch: Tilemap Switzerland

Description Usage Arguments Value Source Examples

Description

A data.frame (or spatial object) of Switzerland's tilemap

Usage

1
tilemap_ch(fortified = T, withLake = F)

Arguments

fortified,

a logical a data.frame instead of spatial object to be returned

withLake,

a logical have Leman and Bodensee lakes?

Value

a data.frame or a spatial object tilemap

Source

https://github.com/ernstbaslerpartner/Switzerland_Tilemap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
tmap_ch <- tilemap_ch()
## Not run: 
# cantonal label
tmap.label <- tmap_ch %>% 
  group_by(Name) %>% 
  summarise(long = mean(long), lat = mean(lat), group = first(group)) %>%
  ungroup()
ggplot(tmap_ch, aes(x = long, y = lat, group = group)) + 
geom_polygon(aes(fill = Name)) + 
theme_minimal() +
geom_text(data = tmap.label, aes(x = long, y = lat, label = Name), hjust = 0.5, vjust = 0.5)

## End(Not run)

d-qn/swiMap documentation built on May 14, 2019, 3:04 p.m.