| Title: | Line Maps |
|---|---|
| Description: | Create maps made of lines. The package contains one function: linemap(). linemap() displays a map made of lines using a raster or gridded data. |
| Authors: | Timothée Giraud [cre, aut] (ORCID: <https://orcid.org/0000-0002-1932-3323>) |
| Maintainer: | Timothée Giraud <[email protected]> |
| License: | GPL-3 |
| Version: | 0.3.0 |
| Built: | 2026-05-08 05:40:04 UTC |
| Source: | https://github.com/riatelab/linemap |
Plot a line map.
linemap( x, k = 2, threshold = 1, col = "white", border = "black", lwd = 0.5, bg = par("bg"), add = FALSE )linemap( x, k = 2, threshold = 1, col = "white", border = "black", lwd = 0.5, bg = par("bg"), add = FALSE )
x |
a data.frame (x, y, value), a terra SpatRaster. |
k |
expension factor. |
threshold |
threshold of the data to plot. |
col |
color for the lines areas. |
border |
color for the lines borders. |
lwd |
thickness of the lines. |
bg |
background color |
add |
if TRUE add the lines to the current plot. |
ras <- terra::rast(system.file("tif/elevation.tif", package = "linemap")) linemap(ras, k = 7)ras <- terra::rast(system.file("tif/elevation.tif", package = "linemap")) linemap(ras, k = 7)