spider (version 1.5.0)

cgraph: Complete graph

Description

Creates a complete graph for the given cloud of vertices.

Usage

cgraph(x, y = NULL, ...)

Arguments

x

X values, or a matrix with two columns containing X and Y values.

y

Y values. Can be left empty if x is a matrix.

...

Other arguments to be passed to segments.

Value

Plots a complete graph between the given vertices.

Details

If y is not given, x is required to be a matrix containing both x and y values.

See Also

plot.ordinDNA.

Examples

Run this code
# NOT RUN {
x <- runif(15)
y <- runif(15)

graphics::plot(x, y)
cgraph(x, y)

M <- cbind(x, y)
cgraph(M[1:10,], col = "blue")

# }

Run the code above in your browser using DataCamp Workspace