Learn R Programming

richCluster (version 1.0.2)

cluster_bar: Cluster-level Bar Plot of Enrichment Significance

Description

Generates a horizontal bar plot showing average enrichment significance for each cluster, across one or more enrichment datasets.

Usage

cluster_bar(cluster_result, clusters = NULL, value_type = "Padj", title = NULL)

Value

A plotly object representing the bar plot.

Arguments

cluster_result

A result list returned by cluster.

clusters

Optional numeric vector of cluster IDs to include. Defaults to all clusters.

value_type

The column name to use for enrichment significance ("Padj" or "Pvalue").

title

Optional plot title. If NULL, a default will be generated.

Examples

Run this code
# \donttest{
# Load example data
cluster_result <- readRDS(system.file("extdata", "cluster_result.rds",
                                      package = "richCluster"))
cbar <- cluster_bar(cluster_result)
cbar
# }

Run the code above in your browser using DataLab