Learn R Programming

PathwaySpace (version 0.99.4)

plotPathDistances: Accessory function to plot pathway space distances.

Description

Accessory function to plot pathway space distances.

Usage

plotPathDistances(pdist, z.transform = FALSE)

Value

A 'ggplot' object.

Arguments

pdist

A list generated by the pathDistances function.

z.transform

A single logical value specifying to convert pathway distances into z-score values.

Examples

Run this code

# Load a vertex-wise distance matrix (distance between nodes in a graph)
data("gdist.toy", package = "PathwaySpace")

# Get two gene lists
from <- sample(colnames(gdist.toy), 50)
to <- sample(colnames(gdist.toy), 50)

# Calculate distances between lists, and between random lists
res <- pathDistances(gdist.toy, from, to)

# Plot observed and null distances
plotPathDistances(res)

Run the code above in your browser using DataLab