-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
Package: tmaptools | ||
Type: Package | ||
Title: Thematic Map Tools | ||
Version: 3.1-1 | ||
Version: 3.2 | ||
Authors@R: person("Martijn", "Tennekes", email = "[email protected]", role = c("aut", "cre")) | ||
Description: Set of tools for reading and processing spatial data. The aim is to supply the workflow to create thematic maps. This package also facilitates 'tmap', the package for visualizing thematic maps. | ||
License: GPL-3 | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Date: 2021-01-19 | ||
Date: 2025-01-03 | ||
Depends: | ||
R (>= 3.5), | ||
methods | ||
|
@@ -25,6 +25,7 @@ Imports: | |
XML | ||
Suggests: | ||
tmap (>= 3.0), | ||
cols4all, | ||
rmapshaper, | ||
osmdata, | ||
OpenStreetMap, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
if (require(tmap) && packageVersion("tmap") >= "2.0") { | ||
if (require(tmap) && packageVersion("tmap") >= "3.99") { | ||
data(NLD_muni) | ||
|
||
NLD_muni_pop_per_km2 <- calc_densities(NLD_muni, | ||
target = "km km", var = c("pop_men", "pop_women")) | ||
target = "km km", var = c("population", "dwelling_total")) | ||
NLD_muni <- sf::st_sf(data.frame(NLD_muni, NLD_muni_pop_per_km2)) | ||
|
||
tm_shape(NLD_muni) + | ||
tm_polygons(c("pop_men_km.2", "pop_women_km.2"), | ||
title=expression("Population per " * km^2), style="quantile") + | ||
tm_facets(free.scales = FALSE) + | ||
tm_layout(panel.show = TRUE, panel.labels=c("Men", "Women")) | ||
tm_polygons(c("population_km.2", "dwelling_total_km.2"), | ||
fill.legend = list(tm_legend(expression("Population per " * km^2)), tm_legend(expression("Dwellings per " * km^2)))) + | ||
tm_facets(free.scales = TRUE) + | ||
tm_layout(panel.show = FALSE) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.