Learn R Programming

rsdepth (version 0.1-22)

drawcompletegraph: Draws Complete Graph of a pointset

Description

Draws Complete Graph of a pointset in plane.

Usage

drawcompletegraph(x, y=NULL,startcanvas=TRUE,...)

Arguments

x

The data as a matrix, data frame or list. If it is a matrix or data frame, then each row is viewed as one bivariate observation. If it is a list, all components must be numerical vectors of equal length (coordinates of observations).

y

The data as a matrix, data frame or list. If it is a matrix or data frame, then each row is viewed as one bivariate observation. If it is a list, all components must be numerical vectors of equal length (coordinates of observations).

startcanvas

A boolean value to let the function whether there is already a plot that we want to use or create a new canvas. Be default set to TRUE.

...

For future use.

Value

Returns nothing.

Details

In dimension 2, draws complete graph on a pointset.

References

N. Mustafa, S. Ray, and M. Shabbir, Statistical Data Depth of Pointsets in the Plane,in prep..

See Also

inflate

Examples

Run this code
# NOT RUN {
## calculation of centroid of a random pointset
z = matrix(rnorm(24),nc=2)
x = drawcompletegraph(z)
# }

Run the code above in your browser using DataLab