fm_segm_contour_helper: Contour segment

View source: R/nonconvex_hull.R

fm_segm_contour_helperR Documentation

Contour segment

Description

Helper from legacy INLA::inla.contour.segment()

Usage

fm_segm_contour_helper(
  x = seq(0, 1, length.out = nrow(z)),
  y = seq(0, 1, length.out = ncol(z)),
  z,
  nlevels = 10,
  levels = NULL,
  groups = NULL,
  positive = TRUE,
  eps = NULL,
  eps_rel = NULL,
  crs = NULL
)

Arguments

x, y, z

The x and y coordinates of the grid, and the z values

nlevels

Number of contour levels

levels

The contour levels. If NULL, pretty(range(z, na.rm = TRUE), nlevels) is used.

groups

The group values for each contour level. If NULL, seq_len(length(levels)) is used.

positive

Logical; if TRUE, the contour lines are made to be CCW around positive excursions

eps, eps_rel

Polygonal curve simplification tolerances

crs

A coordinate reference system

Value

An fm_segm object

See Also

Other nonconvex inla legacy support: fm_nonconvex_hull_inla(), fm_simplify_helper()

Examples

fm_segm_contour_helper(z = matrix(1:16, 4, 4))


fmesher documentation built on April 3, 2025, 7:45 p.m.