plotPathDistances | R Documentation |
Accessory function to plot pathway space distances
plotPathDistances(pdist, z.transform = FALSE)
pdist |
A list generated by the |
z.transform |
A single logical value specifying to convert pathway distances into z-score values. |
A 'ggplot' object.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.