fortify.ppp | R Documentation |
ppp
objectsThis method extracts coordinate and marks data from
ppp
objects to a data.frame, so that it can be
plotted with ggplot.
## S3 method for class 'ppp' fortify(model, data, ...)
model |
ppp object |
data |
not used by this method |
... |
ignored by this method |
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.
ppp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.