Learn R Programming

spatstat (version 1.23-1)

summary.ppp: Summary of a Point Pattern Dataset

Description

Prints a useful summary of a point pattern dataset.

Usage

## S3 method for class 'ppp':
summary(object, \dots, checkdup=TRUE)

Arguments

object
Point pattern (object of class "ppp").
...
Ignored.
checkdup
Logical value indicating whether to check for the presence of duplicate points.

Details

A useful summary of the point pattern object is printed.

This is a method for the generic function summary.

If checkdup=TRUE, the pattern will be checked for the presence of dublicate points, using duplicated.ppp. This can be time-consuming if the pattern contains many points, so the checking can be disabled by setting checkdup=FALSE.

See Also

summary, summary.owin, print.ppp

Examples

Run this code
data(cells)      # plain vanilla point pattern
  summary(cells)  

  data(lansing)    # multitype point pattern
  <testonly>lansing <- lansing[seq(1, lansing$n, length=40)]</testonly>
  summary(lansing) # tabulates frequencies of each mark
  
  data(longleaf)    # numeric marks
  <testonly>longleaf <- longleaf[seq(1, longleaf$n, length=40)]</testonly>
  summary(longleaf) # prints summary.default(x$marks)

  data(demopat)     # weird polygonal window
  summary(demopat)  # describes it

Run the code above in your browser using DataLab