Learn R Programming

richCluster (version 1.0.2)

cluster_dot: Cluster-level Dot Plot of Enrichment Significance

Description

Creates a dot plot summarizing cluster-level enrichment across datasets. Each point represents a cluster, with its size proportional to the number of terms and its x-position reflecting average significance (e.g., Padj or Pvalue).

Usage

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

Value

A plotly object representing the dot plot.

Arguments

cluster_result

A result list returned from cluster.

clusters

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

value_type

The name of the value column to visualize (e.g., "Padj" or "Pvalue").

title

Optional title for the plot. If NULL, a default title is generated.

Examples

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

Run the code above in your browser using DataLab