Lines3d: Draw lines in 3D space

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Lines3d.R

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

1
2
3
4
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

1
2
3
4
5
6
7
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)

p3d documentation built on May 2, 2019, 5:25 p.m.