cmp_make_plot: Make plots for comparing clustering methods

Description Usage Arguments Details Value Examples

View source: R/compare_methods.R

Description

Make plots for comparing clustering methods

Usage

1
cmp_make_plot(mat, clt, plot_type = c("mixed", "heatmap"), nrow = 3)

Arguments

mat

A similarity matrix.

clt

A list of clusterings from cmp_make_clusters.

plot_type

What type of plots to make. See Details.

nrow

Number of rows of the layout when plot_type is set to heatmap.

Details

If plot_type is the default value mixed, a figure with three panels generated:

If plot_type is heatmap. There are heatmaps for the similarity matrix under clusterings from different methods. The last panel is a table with the number of clusters under different clusterings.

Value

No value is returned.

Examples

1
2
3
4
5
6
7
8
## Not run: 
mat = readRDS(system.file("extdata", "random_GO_BP_sim_mat.rds",
    package = "simplifyEnrichment"))
clt = cmp_make_clusters(mat)
cmp_make_plot(mat, clt)
cmp_make_plot(mat, clt, plot_type = "heatmap")

## End(Not run)

simplifyEnrichment documentation built on Nov. 8, 2020, 5:07 p.m.