Spheres3d: Draw sphere in 3D space

View source: R/Spheres3d.R

Spheres3dR Documentation

Draw sphere in 3D space

Description

A general function to draw spheres in 3D space.

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

Usage

Spheres3d(obj, ...)

## Default S3 method:
Spheres3d(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
# FIX THIS
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.