plotpath3d: plotpath3d

Description Usage Arguments Author(s) Examples

Description

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

Usage

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

Arguments

path
vars
...

Author(s)

Toby Dylan Hocking

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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")

clusterpath documentation built on June 30, 2020, 3:02 a.m.