vis.immunr_hclust: Visualisation of hierarchical clustering

View source: R/vis.R

vis.immunr_hclustR Documentation

Visualisation of hierarchical clustering

Description

Visualisation of the results of hierarchical clustering. For other clustering visualisations see vis.immunr_kmeans.

Usage

## S3 method for class 'immunr_hclust'
vis(.data, .rect = FALSE, .plot = c("clust", "best"), ...)

Arguments

.data

Clustering results from repOverlapAnalysis or geneUsageAnalysis.

.rect

Passed to fviz_dend - whether to add a rectangle around groups.

.plot

A character vector of length one or two specifying which plots to visualise. If "clust" then plot only the clustering. If "best" then plot the number of optimal clusters. If both then plot both.

...

Not used here.

Value

Ggplot2 objects inside the patchwork container.

See Also

vis, repOverlapAnalysis, geneUsageAnalysis

Examples

data(immdata)
ov <- repOverlap(immdata$data)
repOverlapAnalysis(ov, "mds+hclust") %>% vis()

immunarch documentation built on Dec. 28, 2022, 2:59 a.m.