Learn R Programming

directlabels (version 2.0)

iris.l1.cluster: Clustering of the iris data with the l1 clusterpath

Description

The l1 clustering algorithm from the clusterpath package was applied to the iris dataset and the breakpoints in the solution path are stored in this data frame.

Usage

data(iris.l1.cluster)

Arguments

source

clusterpath package

References

clusterpath article

Examples

Run this code
data(iris.l1.cluster,package="directlabels")
library(ggplot2)
p <- ggplot(iris.l1.cluster,aes(lambda,alpha,group=row,colour=Species))+
  geom_line(alpha=1/4)+
  facet_grid(col~.)
p2 <- p+xlim(-0.0025,max(iris.l1.cluster$lambda))
print(direct.label(p2,list(first.points,get.means)))

Run the code above in your browser using DataLab