plotTrajectory: Plot state variables of Boolean Regulatory Systems

Description Usage Arguments Examples

View source: R/plotTrajectory.r

Description

Allows for visualization of Boolean state variables. If compare = TRUE, the trajectory in BLACK is dataset1 and the trajectory in RED is dataset2.

Usage

1
2
3
4
5
plotTrajectory(dataset1, 
               labels = NA, 
               dataset2 = NA, 
               compare = FALSE, 
               byrow = TRUE)

Arguments

dataset1

Trajectory to be viewed. Input is limited to 4 variables to allow for concise viewing. Shown in BLACK.

labels

Vector of labels to apply to plots

dataset2

If compare = TRUE, another dataset to be overlayed on dataset1. This is, again, limited to 4 variables. Shown in DASHED RED if compare = TRUE.

compare

Set compare = TRUE if an overlay is desired

byrow

Set byrow = FALSE if the input data is not in the format of a single state variable corresponding to a row of the dataset.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(p53net_DNAdsb1)

data <- simulateNetwork(p53net_DNAdsb1, n.data = 100, p = 0.02,
                        obsModel = list(type = 'Bernoulli',
                                        q = 0.05))


plotTrajectory(data$X,              
              labels = p53net_DNAdsb1$genes)
                        
                        
#View both (original state trajectory and observation) datasets overlayed
plotTrajectory(data$X,              
              labels = p53net_DNAdsb1$genes,
              dataset2 = data$Y,
              compare = TRUE)

BoolFilter documentation built on May 2, 2019, 1:27 p.m.