Description Usage Arguments Value Examples
plot.CBASS
provides a range of ways to visualize the results of convex
clustering, including:
Dendrograms, illustrating the nested cluster hierarchy inferred from
the convex clustering solution path (type = "row.dendrogram"
and
type = "col.dendrogram"
for the row (observation) and column
(feature / variable) clusterings, respectively);
Path plots, showing the coalescence of the estimated cluster centroids
as the regularization parameter is increased (type = "row.dendrogram"
and type = "col.dendrogram"
for the row (observation) and column
(feature / variable) clusterings, respectively);
A cluster heatmap, displaying row and column histograms, as well
as the clustered data matrix in a single graphic (type = "heatmap"
);
An interactive Javascript cluster (interactive = TRUE
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
x |
An object of class |
... |
Additional arguments, which are handled differently for different
values of
See the documentation of |
type |
A string indicating the type of visualization to show (see details above). |
dynamic |
A logical scalar.Should the resulting animation be dynamic (animated) or not?
If |
interactive |
A logical scalar. Should the resulting animation be interactive or not?
If |
percent |
A number between 0 and 1, giving the regularization level (as
a fraction of the final regularization level used) at which to
assign clusters in the static ( |
k.row |
An integer indicating the desired number of row clusters to be displayed
in the static plots. (If plotting columns, the regularization level
giving |
k.col |
An integer indicating the desired number of column clusters to be displayed
in the static plots. (If plotting rows, the regularization level
giving |
percent.seq |
A grid of values of percent along which to generate dynamic visualizations (if dynamic == TRUE) |
axis |
A character vector of length two indicating which features or principal
components to use as the axes in the path visualizations.
Currently only features like |
slider_y |
A number to adjust the slider's vertical position for interactive dendrogram plots (ignored for other plot types). |
refit |
A logical scalar. Should "naive" centroids (TRUE) or the actual centroids estimated by convex clustering be used? When the default refit = FALSE, the estimated U from the convex clustering problem is used. The refit = TRUE returns actual centroids (mean) of all elements assigned to that cluster; Due to the global shrinkage imposed, these clusters are more "shrunk together" than the naive clusters. Only for the heatmap plots. (ignored for other plot types). |
The value of the return type depends on the interactive
and dynamic
:
if interactive = FALSE
and dynamic = FALSE
, an object of class
ggplot
is returned;
if interactive = FALSE
and dynamic = TRUE
, an object of class gganim
is returned;
if interactive = TRUE
, an object of class plotly
is returned.
All the plots can be plotted directly (by invoking its print method) or further manipulated by the user.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.