linemap: Create Line Map

View source: R/linemap.R

linemapR Documentation

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)

rCarto/linemap documentation built on Dec. 4, 2023, 1:06 a.m.