Package 'linemap'

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]
Maintainer: Timothée Giraud <[email protected]>
License: GPL-3
Version: 0.3.0
Built: 2025-01-21 02:38:30 UTC
Source: https://github.com/riatelab/linemap

Help Index


Create Line Map

Description

Plot a line map.

Usage

linemap(
  x,
  k = 2,
  threshold = 1,
  col = "white",
  border = "black",
  lwd = 0.5,
  bg = par("bg"),
  add = FALSE
)

Arguments

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.

Examples

ras <- terra::rast(system.file("tif/elevation.tif", package = "linemap"))
linemap(ras, k = 7)