plot.Planes: Plot a 'Planes' 'object'

plot.PlanesR Documentation

Plot a Planes object

Description

Plots the plane together with the defining 3D points.

Usage

## S3 method for class 'Planes'
plot(
  x,
  x.grid.size = 10,
  y.grid.size = 10,
  xlab = "x",
  ylab = "y",
  zlab = "z",
  phi = 40,
  theta = 40,
  ...
)

Arguments

x

Object of class Planes.

x.grid.size, y.grid.size

the size of the grids for the x and y axes, default is 10 for both

xlab, ylab, zlab

Titles for the x, y, and z axes, respectively (default is xlab="x", ylab="y", and zlab="z").

theta, phi

The angles defining the viewing direction, default is 40 for both. theta gives the azimuthal direction and phi the colatitude. see persp.

...

Additional parameters for plot.

Value

None

See Also

print.Planes, summary.Planes, and print.summary.Planes

Examples

## Not run: 
P<-c(1,10,3); Q<-c(1,1,3); C<-c(3,9,12)
pts<-rbind(P,Q,C)

xr<-range(pts[,1]); yr<-range(pts[,2])
xf<-(xr[2]-xr[1])*.1
#how far to go at the lower and upper ends in the x-coordinate
yf<-(yr[2]-yr[1])*.1
#how far to go at the lower and upper ends in the y-coordinate
x<-seq(xr[1]-xf,xr[2]+xf,l=5) #try also l=10, 20 or 100
y<-seq(yr[1]-yf,yr[2]+yf,l=5) #try also l=10, 20 or 100

plPQC<-Plane(P,Q,C,x,y)
plPQC
plot(plPQC,theta = 225, phi = 30, expand = 0.7,
facets = FALSE, scale = TRUE)

## End(Not run)


elvanceyhan/pcds documentation built on June 29, 2023, 8:12 a.m.