Learn R Programming

pgs (version 0.4-0)

Quadrat-class: Class "Quadrat"

Description

Extend class "Figure". Representation of planar quadrats (rectangles).

Arguments

Objects from the Class

Objects can be created by calls of the form new("Quadrat", ...). It is recommended to use the generator Quadrat.

Slots

dimspace:
Object of class "numeric". Dimension of the space where the quadrat lies. Equal to 2.
coord:
Object of class "matrix". A 2x1 matrix containing the Cartesian coordinates of a vertex of the quadrat. The opposite vertex is defined as the origin.

Extends

Class "Figure", directly.

Methods

content
signature(x = "Quadrat"): compute the quadrat area.
covariogram
signature(x = "Quadrat", f = "function"): covariogram for a Quadrat object.
plot
signature(x = "Quadrat", y = "missing"): plot a Quadrat object. The extra argument origin (default: null vector) may be used to plot the quadrat translated by the vector origin. If the extra argument add (default: FALSE) is TRUE, the quadrat is added to the current plot.
print
signature(x = "Quadrat"): print a Quadrat object.

See Also

Generator Quadrat, classes Segment-class, PointPattern-class.