fortify.owin: Fortify method for unpacking 'owin' objects.

View source: R/vis.R

fortify.owinR Documentation

Fortify method for unpacking owin objects.

Description

This method extracts relevant coordinates for plotting a owin object to allow it to be plotted with ggplot.

Usage

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

Arguments

model

owin object

data

not used by this method

...

ignored

Value

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.

See Also

owin


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