How to interactively position legends and layout elements on a map with cartography

Metadatas

Date

February 28, 2020

Language
Identifier
Collection

R Géomatique

Organization

OpenEdition



Cite this document

Timothée Giraud, « How to interactively position legends and layout elements on a map with cartography », R Géomatique, ID : 10670/1.4fzz4m


Metrics


Share / Export

Abstract 0

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",...

From the same authors

On the same subjects

Similar documents