Learn R Programming

richCluster (version 1.0.2)

term_dot: Term-level Dot Plot for a Specific Cluster

Description

Creates a dot plot of individual terms within a specified cluster, showing their significance and number of genes.

Usage

term_dot(cluster_result, cluster = 1, value_type = "Padj", title = NULL)

Value

A plotly object representing the dot plot of terms.

Arguments

cluster_result

A result list returned from cluster.

cluster

Cluster ID (numeric) or term name (character) to plot.

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 using the representative term.

Examples

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

Run the code above in your browser using DataLab