plotZ: Comparison of Z scores between two PANDA runs

Description Usage Arguments Value Examples

View source: R/plotting.R

Description

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.

Usage

1
plotZ(x, y, hex = TRUE, bins = 200, addLine = TRUE, rank = FALSE)

Arguments

x

PANDA object - output of the panda function.

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.

Value

ggplot comparing the Z-scores between the two networks.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

pandaR documentation built on Nov. 8, 2020, 5:56 p.m.