Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

l_clusterLine

Cluster and plot smooth effects


Description

This layers clusters several smooth effects and plots the cluster centers.

Usage

l_clusterLine(centers, cluFun = kmeans, a.clu = list(), ...)

Arguments

centers

the number of clusters. This is the same a the centers argument in stats::kmeans.

cluFun

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).

a.clu

list of further argument to be passed to cluFun.

...

graphical arguments to be passed to ggplot2::geom_line.

Value

An object of class gamLayer.

See Also

See plot.fs.interaction.1D for examples.


mgcViz

Visualisations for Generalized Additive Models

v0.1.6
GPL-3
Authors
Matteo Fasiolo [aut, cre], Raphael Nedellec [aut], Yannig Goude [ctb], Christian Capezza [ctb], Simon N. Wood [ctb]
Initial release
2020-03-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.