{"word_count": 263, "character_count": 1871}
A new version of the cartography package (v2.2.0) has arrived on CRAN.WebsiteA website showing the package documentation and vignette has been built with pkgdown.VignetteA new vignette introduces the package and provides examples of how to create some thematic maps:DatasetsA new dataset has been added to the package: a GeoPackage of Martinique municipalities that can be imported via the st_read() function of the sf package. This dataset contains municipalities geometries and a few variables (population, median income, active population...). The dataset is fully documented in the vignette. All examples are based on it but the old NUTS 2006 dataset is still available via data(nuts2006).New FeaturesWe have introduced a new argument legend.horiz in choroLayer() to display legends horizontally:library(cartography)library(sf)mtq &#60;- st_read(system.file("gpkg/mtq.gpkg",                             package = "cartography"))choroLayer(  x = mtq, var = "MED",   legend.horiz = TRUE,   legend.pos = "topright",  legend.title.txt = "Median Income",  legend.values.rnd = -2)The posscale argument in layoutLayer() allows to display the scale bar in the bottomleft or bottomright corners. The horiz argument can be set to FALSE to display sources and author vertically in the bottomright corner:layoutLayer(  title = "Wealth Disparities in Martinique, 2015",   posscale = "bottomleft", scale = 5,  horiz = FALSE,  sources = "Insee and IGN, 2018 - cartography 2.2.0"))A new position is available for most legends. Using the "bottomleftextra" position leaves an extra padding in the bottomleft corner to avoid overlapping with sources and author display from layoutLayer():Bug fixesThis release also fixes various small bugs. A certain number of theses bugs were found in the implementation of a test suite for the package. See the NEWS file for the full list of changes.