plotpath3d {clusterpath}R Documentation

plotpath3d

Description

plot the path in rgl 3d as lines. uses only first 3 variables by default

Usage

plotpath3d(path, vars = 1:3, ...)

Arguments

path
vars
...

Author(s)

Toby Dylan Hocking

Examples

## calculate the l1 clusterpath
breakpoints <- clusterpath.l1.id(iris[,1:4])
plot(breakpoints)
## calculate the weighted l2 clusterpath
path <- clusterpath.l2(iris[,1:4],gamma=1)
plot(path,groups=iris$Species)
require(rgl)
plot3d(iris[,1:3],type="p",box=FALSE,aspect=TRUE)
plotpath3d(path,col="blue")
bpts4d <- castbreakpoints(breakpoints)
plotpath3d(bpts4d,col="orange")

[Package clusterpath version 1.2 Index]