plotRectangle3D: Plot a rectangle defined by two corner points.

View source: R/plot.R

plotRectangle3DR Documentation

Plot a rectangle defined by two corner points.

Description

The rectangle is defined by {x|a <= x <= b} where a is the minimum values and b is the maximum values.

Usage

plotRectangle3D(a, b, ...)

Arguments

a

A vector of length 3.

b

A vector of length 3.

...

Further arguments passed on the the RGL plotting functions. This must be done as lists (see examples). Currently the following arguments are supported:

  • argsPlot3d: A list of arguments for rgl::plot3d.

  • argsSegments3d: A list of arguments for rgl::segments3d.

  • argsPolygon3d: A list of arguments for rgl::polygon3d.

  • argsShade3d: A list of arguments for rgl::shade3d.

Value

Object ids (invisible).

Examples


ini3D()
plotRectangle3D(c(0,0,0), c(1,1,1))
plotRectangle3D(c(1,1,1), c(4,4,3), drawPoints = TRUE, drawLines = FALSE,
           argsPlot3d = list(size=2, type="s", alpha=0.3))
ids <- plotRectangle3D(c(2,2,2), c(3,3,2.5), argsPolygon3d = list(alpha = 1) )
finalize3D()
# pop3d(id = ids) remove last object


relund/gMOIP documentation built on Feb. 23, 2024, 12:11 p.m.