fortify.ppp: Fortify method for 'ppp' objects

View source: R/vis.R

fortify.pppR Documentation

Fortify method for ppp objects

Description

This method extracts coordinate and marks data from pppobjects to a data.frame, so that it can be plotted with ggplot.

Usage

## S3 method for class 'ppp'
fortify(model, data, ...)

Arguments

model

ppp object

data

not used by this method

...

ignored by this method

Value

data.frame containing at least two columns: x and y which represent the x and y coordinates of each point in a ppp object. Returned data.frame can also contain multiple other columns depending of the type of marks associated with the ppp object (see ppp). If mark type is:

  • vector: a single column with heading marks will be added.

  • data.frame: the marks data.frame with be column bound to the output data.frame, where the column headings from the marks data.frame are preserved.

See Also

ppp


keithschulze/supr documentation built on Nov. 26, 2022, 7:09 a.m.