plotZ | R Documentation |
Given two PANDA objects with the same network structure, plot the Z-score comparison. The two PANDA objects should only differ in the gene expression used for the network constructions or other parameters.
plotZ(x, y, hex = TRUE, bins = 200, addLine = TRUE, rank = FALSE)
x |
PANDA object - output of the |
y |
PANDA object - second PANDA object. |
hex |
TRUE/FALSE - If TRUE, bin data points to avoid over plotting. |
bins |
Number of bins to use for plotting. |
addLine |
TRUE/FALSE - to add y=x line. |
rank |
TRUE/FALSE - If TRUE, plot rank of edge weights rather than weight values. |
ggplot comparing the Z-scores between the two networks.
data(pandaResult)
data(pandaToyData)
pandaRes <- pandaRes2 <- pandaResult
plotZ(pandaRes, pandaRes2)
panda.res1 <- with(pandaToyData, panda(motif, expression, ppi, hamming=1))
panda.res2 <- with(pandaToyData, panda(motif, expression +
rnorm(prod(dim(expression)),sd=5), ppi, hamming=1))
plotZ(panda.res1, panda.res2,addLine=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.