fortify.owin | R Documentation |
owin
objects.This method extracts relevant coordinates for plotting a
owin
object to allow it to be plotted with ggplot.
## S3 method for class 'owin' fortify(model, data, ...)
model |
owin object |
data |
not used by this method |
... |
ignored |
data.frame containing windows information. Information in the
data.frame depends on the type of the owin
:
rectangular windows: data.frame with a single row and 4 columns that contain xmin, xmax, ymin, ymax extents of the recangle.
polygonal window: data.frame with three columns: id
,
x
, y
where id
represents a unique id for each
polygon when there are multiple, and x
& y
represent the
x and y coordinates of each vertex in the polygon.
mask window: data.frame with three columns: x
,
y
and value
where x
& y
are pixel
coordinates, and value
is a logical value denoting whether the
pixel is part of the window.
owin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.