This layers clusters several smooth effects and plots the cluster centers.
l_clusterLine(centers, cluFun = kmeans, a.clu = list(), ...)An object of class gamLayer.
the number of clusters. This is the same a the centers
argument in stats::kmeans.
the function used for clustering. I must take (at least) arguments x,
centers and data, which have the same interpretation as in
stats::kmeans (which is the default).
list of further argument to be passed to cluFun.
graphical arguments to be passed to ggplot2::geom_line.
See plot.fs.interaction.1D for examples.