Learn R Programming

spatstat (version 1.11-4)

unmark: Remove Marks from a Marked Point Pattern

Description

Removes the mark information from a marked point pattern

Usage

unmark(X)

Arguments

X
A point pattern. Either an object of class "ppp" or anything acceptable to as.ppp.

Value

  • A point pattern (of class "ppp") with any mark information deleted.

Details

This is simply a convenience for those occasions in which we want to remove the marks from a marked point pattern.

See Also

ppp.object, as.ppp

Examples

Run this code
data(lansing)
  hicks <- lansing[lansing$marks == "hickory", ]
  plot(hicks)  # still a marked point pattern, but only 1 value of marks
  plot(unmark(hicks)) # unmarked

Run the code above in your browser using DataLab