drop_marker: Remove markers from a map

View source: R/utils.R

drop_markerR Documentation

Remove markers from a map

Description

This function creates a new map by removing markers from an existing one.

Usage

drop_marker(input.map, mrk, verbose = TRUE)

Arguments

input.map

an object of class mappoly.map

mrk

a vector containing markers to be removed from the input map, identified by their names or positions

verbose

if TRUE (default), the current progress is shown; if FALSE, no output is produced

Value

an object of class mappoly.map

Author(s)

Marcelo Mollinari, mmollin@ncsu.edu

Examples

 sub.map <- get_submap(maps.hexafake[[1]], 1:50, reestimate.rf = FALSE)
 plot(sub.map, mrk.names = TRUE)
 mrk.to.remove <- c("M_1", "M_23", "M_34")
 red.map <- drop_marker(sub.map, mrk.to.remove)
 plot(red.map, mrk.names = TRUE)


mappoly documentation built on Jan. 6, 2023, 1:16 a.m.