plot2d: plot2d

Description Usage Arguments Author(s) Examples

Description

Plot the result of clusterpath for a 2d data set. In this case, the breakpoints in the clusterpath data frame are not sufficient to visualize the correct path of solutions in 2d. You need additional breakpoints, which are calculated by castbreakpoints before plotting using ggplot2.

Usage

1
plot2d(x)

Arguments

x

clusterpath data frame as returned by clusterpath.l1.id.

Author(s)

Toby Dylan Hocking

Examples

1
2
3
sim <- gendata(N=5,D=2,K=2)
df <- clusterpath.l1.id(sim$mat)
plot2d(df)

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