Description Usage Arguments Author(s) Examples
plot the path in rgl 3d as lines. uses only first 3 variables by default
1 | plotpath3d(path, vars = 1:3, ...)
|
path |
|
vars |
|
... |
Toby Dylan Hocking
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.