plot.clusterpath {clusterpath} | R Documentation |
Plot method for clusterpath data frames. These data frames contain all the breakpoints for each dimension, so we can plot lines to represent exactly the entire path of optimal solutions.
## S3 method for class 'clusterpath' plot(x, type = "l", main = "The entire regularization path of optimal solutions for each variable", xlab = expression(paste("location in the regularization path ", lambda)), ylab = expression(paste("optimal coefficient ", alpha)), strip = strip.custom(strip.names = TRUE), layout = c(1, nlevels(x$col)), ...)
x |
data frame returned by clusterpath.l1.id |
type |
plot type, see ?xyplot |
main |
main title |
xlab |
annotation for the horizontal axis |
ylab |
annotation for the vertical axis |
strip |
strip function for annotation in the strips |
layout |
layout for the plot, by default the panels are stacked vertically |
... |
Other arguments for xyplot |
lattice xyplot showing the entire path of solutions.
Toby Dylan Hocking
sim <- gendata(N=20,D=5,K=5) df <- clusterpath.l1.id(sim$mat) plot(df) df.iris <- clusterpath.l1.id(as.matrix(iris[,1:4])) plot(df.iris)