Description Usage Arguments Value Source Examples
A data.frame (or spatial object) of Switzerland's tilemap
1 | tilemap_ch(fortified = T, withLake = F)
|
fortified, |
a logical a data.frame instead of spatial object to be returned |
withLake, |
a logical have Leman and Bodensee lakes? |
a data.frame or a spatial object tilemap
https://github.com/ernstbaslerpartner/Switzerland_Tilemap
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.