Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.quadratcount

Plot Quadrat Counts


Description

Given a table of quadrat counts for a spatial point pattern, plot the quadrats which were used, and display the quadrat count as text in the centre of each quadrat.

Usage

## S3 method for class 'quadratcount'
plot(x, ..., add = FALSE,
              entries = as.vector(t(as.table(x))),
              dx = 0, dy = 0, show.tiles = TRUE,
              textargs = list())

Arguments

x

Object of class "quadratcount" produced by the function quadratcount.

...

Additional arguments passed to plot.tess to plot the quadrats.

add

Logical. Whether to add the graphics to an existing plot.

entries

Vector of numbers to be plotted in each quadrat. The default is to plot the quadrat counts.

dx,dy

Horizontal and vertical displacement of text relative to centroid of quadrat.

show.tiles

Logical value indicating whether to plot the quadrats.

textargs

List containing extra arguments passed to text.default to control the annotation.

Details

This is the plot method for the objects of class "quadratcount" that are produced by the function quadratcount. Given a spatial point pattern, quadratcount divides the observation window into disjoint tiles or quadrats, counts the number of points in each quadrat, and stores the result as a contingency table which also belongs to the class "quadratcount".

First the quadrats are plotted (provided show.tiles=TRUE, the default). This display can be controlled by passing additional arguments ... to plot.tess.

Then the quadrat counts are printed using text.default. This display can be controlled using the arguments dx,dy and textargs.

Value

Null.

Author(s)

and Rolf Turner r.turner@auckland.ac.nz

See Also

Examples

plot(quadratcount(swedishpines, 5))

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.