data.Ell3d: Data ellipse in 3D

View source: R/data.Ell3d.R

data.Ell3dR Documentation

Data ellipse in 3D

Description

Plots a data ellipse in 3D for the current data

Usage

data.Ell3d(...)

Arguments

...

Details

None yet.

Value

None

Author(s)

Georges Monette

See Also

Ell3d, ~~~

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(  ... ) {
    #
    # NEEDS WORK:
    # should work like 'ellipsoid = TRUE' when called with no arguments
    #
      a <- args3d(...)
      xyz <- a$x
      oargs <- a[-1]
      center <- apply( xyz, 2, mean, na.rm = T)
      shape <-  var( xyz, na.rm = T, use = "complete")
      do.call( Ell3d, c( center= center, shape = shape, oargs))
  }

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