| fortify.psp | R Documentation |
psp objectsThis method extracts coordinate and marks data from
psp objects to a data.frame, so that it can be
plotted with ggplot.
## S3 method for class 'psp' fortify(model, data, ...)
model |
psp object |
data |
not used by this method |
... |
ignored by this method |
data.frame containing at least four columns: x0, x1,
y0 and y1 with represent the coordinates of a line segement.
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.
psp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.