Learn R Programming

BoolFilter (version 1.0.0)

plotTrajectory: Plot state variables of Boolean Regulatory Systems

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

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

Run this code
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)

Run the code above in your browser using DataLab