clusterPbnPlot: Plot a cluster PBN

View source: R/plotting.R

clusterPbnPlotR Documentation

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)

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.

Value

A ggplot object containing the cluster PBN plot.

Examples

# 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")


ingres documentation built on Sept. 14, 2022, 9:05 a.m.