plot.clusterpath: plot clusterpath

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1
2
3
4
5
6
## 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)), ...)

Arguments

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

Value

lattice xyplot showing the entire path of solutions.

Author(s)

Toby Dylan Hocking

Examples

1
2
3
4
5
6
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)

clusterpathRcpp documentation built on May 2, 2019, 5:26 p.m.