Learn R Programming

ingres (version 1.0.0)

clusterPbnPlot: Plot a cluster PBN

Description

Plots the PBN produced by computePbnByCluster for a given cluster and returns it as a ggplot object

Usage

clusterPbnPlot(ingres.object, cluster.id)

Value

A ggplot object containing the cluster PBN plot.

Arguments

ingres.object

An ingres object with a non-null cluster.pbn slot.

cluster.id

A string containing the id of the cluster to be plotted.

Examples

Run this code
# Create an ingres object with viper slot
ing = createIngresObjectFromSeurat(
  small_blca_wang, "RNA", "data", network_genes, network
)
ing@viper = viper_results

ing = computePbnByCluster(ing)
clusterPbnPlot(ing, "1")

Run the code above in your browser using DataLab