Learn R Programming

spatstat (version 1.23-1)

plot.envelope: Plot a Simulation Envelope

Description

Plot method for the class "envelope".

Usage

## S3 method for class 'envelope':
plot(x, \dots, shade=c("hi", "lo"))

Arguments

x
An object of class "envelope", containing the variables to be plotted or variables from which the plotting coordinates can be computed.
...
Extra arguments passed to plot.fv.
shade
An index that identifies two columns of x. When the corresponding curves are plotted, the region between the curves will be shaded in light grey.

Value

  • Either NULL, or a data frame giving the meaning of the different line types and colours.

Details

This is the plot method for the class "envelope" of simulation envelopes. Objects of this class are created by the command envelope.

This plot method is identical to plot.fv except that its default behaviour is to shade the region between the upper and lower envelopes in a light grey colour. To suppress the shading and plot the upper and lower envelopes as curves, set shade=NULL.

To change the colour of the shading, use the argument shadecol which is passed to plot.fv. See plot.fv for further information on how to control the plot.

See Also

envelope, plot.fv

Examples

Run this code
data(cells)
   E <- envelope(cells, Kest, nsim=19)
   plot(E)
   plot(E, sqrt(./pi) ~ r)

Run the code above in your browser using DataLab