Lines3d: Draw lines in 3D space

View source: R/Lines3d.R

Lines3dR Documentation

Draw lines in 3D space

Description

A general function to draw lines or figures composed of lines in 3D space.

Lines3d allows arguments to be vectors or matrices whose corresponding axes are specified with names of the form 'x', 'xy', 'yxz', etc.

Usage

Lines3d(obj, ...)

## Default S3 method:
Lines3d(obj, ...)

Arguments

obj

Not presently used.

...

The ...

argument is used to pass a collection of vectors or matrices whose corresponding axes are specified with names of the form 'x', 'xy', 'yxz'. Special forms assigning x, y, z as 'min' or 'max', such as x='min' are treated appropriately. Other arguments, such as col, lwd can also be passed.

Value

None

Author(s)

Georges Monette

See Also

Plot3d, ~~~

Examples

require(car)
Plot3d( prestige ~ education + income, Prestige, col="blue")
data.Ell3d()
# marginal ellipses
Lines3d( y = 'min', xz = with( Prestige, dell( education, income)), lwd=2)
Lines3d( z = 'min', xy = with( Prestige, dell( education, prestige)), lwd=2)
Lines3d( x = 'min', yz = with( Prestige, dell( prestige, income)), lwd=2)

gmonette/p3d documentation built on Nov. 16, 2023, 11:31 p.m.