Skip to content

tmap 4.0

Latest
Compare
Choose a tag to compare
@olivroy olivroy released this 28 Jan 13:24

tmap v4 is a major release and has been rewritten from scratch. It contains tons of new features. Although we did our best to make changes backwards compatible, some things may not work as expected.

New syntax

  • The arguments of layer functions such as tm_symbols() have been reorganized. Visual variables are used with explicit scales, legends, and charts.
  • The names of visual variables are consistent across standard map layer functions. For vector data, fill is the visual variable for fill color and col for border color.
  • New vignettes available to explain how to upgrade your code to tmap v4.

Updated datasets

  • rivers has been renamed to World_rivers due to the name clash with rivers from datasets.
  • The Netherlands datasets have been updated: from 2022 NLD_prov, NLD_muni, and (new) NLD_dist (district level) have been included with new demographic variables.
  • land has included color tables

Extensions

  • tmap can now be extended in several ways.

Backwards compatibility

  • All tmap v3 code should be backwards compatible with v4.
  • We added 'v3' styles to make the layout (almost) identical to v3
  • We introduced messages to make it easier for you to upgrade your code