February 28, 2020
Timothée Giraud, « How to interactively position legends and layout elements on a map with cartography », R Géomatique, ID : 10670/1.4fzz4m
In cartography several functions have a pos or legend.pos argument. These argument can take the following values: "topleft", "top", "topright", "right", "bottomright", "bottom", "bottomleft", "bottomleftextra", "left" or a vector of two coordinates in map units (c(x, y)). The posibility to use a vector of coordinates is useful for placing an element at a precise location: library(sf) library(cartography) mtq - st_read(system.file("gpkg/mtq.gpkg", package="cartography")) png("poslegend1.png",...