Learn R Programming

spatstat.geom (version 3.6-0)

plot.pp3: Plot a Three-Dimensional Point Pattern

Description

Plots a three-dimensional point pattern.

Usage

# S3 method for pp3
plot(x, ..., eye=NULL, org=NULL, theta=25, phi=15,
                    type=c("p", "n", "h"),
                    box.back=list(col="pink"),
                    box.front=list(col="blue", lwd=2))

Arguments

Value

Null.

Details

This is the plot method for objects of class "pp3". It generates a two-dimensional plot of the point pattern x and its containing box as if they had been viewed from the location specified by eye (or from the direction specified by theta and phi).

The edges of the box at the ‘back’ of the scene (as viewed from the eye position) are plotted first. Then the points are added. Finally the remaining ‘front’ edges are plotted. The arguments box.back and box.front specify graphical parameters for drawing the back and front edges, respectively. Alternatively box.back=FALSE specifies that the back edges shall not be drawn.

Note that default values of arguments to plot.pp3 can be set by spatstat.options("par.pp3").

See Also

pp3, spatstat.options.

Examples

Run this code
  X <- osteo$pts[[1]]
  plot(X, main="Osteocyte lacunae, animal 1, brick 1",
       cex=1.5, pch=16)
  plot(X, type="h", main="", box.back=list(lty=3))

Run the code above in your browser using DataLab