data.Ell3d: Data ellipse in 3D

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/data.Ell3d.R

Description

Plots a data ellipse in 3D for the current data

Usage

1

Arguments

...

Details

None yet.

Value

None

Author(s)

Georges Monette

See Also

Ell3d, ~~~

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
##---- 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))
  }

p3d documentation built on May 31, 2017, 3:31 a.m.