Skip to contents

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 = pretty(range(z, na.rm = TRUE), nlevels),
  groups = seq_len(length(levels)),
  positive = TRUE,
  eps = NULL,
  eps_rel = NULL,
  crs = NULL
)

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))
#> fm_segm object:
#>   8 interior edges (8 groups: 2 3 4 5 6 7 8 9)
#>   Bounding box = (0,1) x (0,1) x (0,0)