Visualizes the state transitions and their probabilities in a probabilistic Boolean network. This takes the transition table information calculated by the markovSimulation
method. Only transitions with non-zero probability are included in the plot. The function requires the igraph package.
plotPBNTransitions(markovSimulation,
stateSubset,
drawProbabilities = TRUE,
drawStateLabels = TRUE,
layout = layout.fruchterman.reingold,
plotIt = TRUE, ...)
Returns an invisible object of class igraph
containing the wiring graph.
An object of class MarkovSimulation
, as returned by markovSimulation
. As the transition table information in this structure is required, markovSimulation
must be called with returnTable
set to TRUE.
An optional list of states, where each element of the list must be a vector with a 0/1 entry for each gene. If this argument is supplied, the graph only contains the specified states and transitions between these states.
If set to true, the edges of the graph are annotated with the probabilities of the corresponding transitions. Default is TRUE.
If set to true, the vertices of the graph are annotated with the gene values of the corresponding states. Defaults to TRUE.
A layouting function that determines the placement of the nodes in the graph. Please refer to the layout
manual entry in the igraph package for further details. By default, the Fruchterman-Reingold algorithm is used.
If this is true, a plot is generated. Otherwise, only an object of class igraph
is returned, but no plot is drawn.
Further graphical parameters to be passed to plot.igraph
.
This function uses the plot.igraph
function from the igraph package. The plots are customizeable using the ...
argument. For details on possible parameters, please refer to igraph.plotting
.
markovSimulation
# load example network
data(examplePBN)
# perform a Markov chain simulation
sim <- markovSimulation(examplePBN)
# plot the transitions and their probabilities
plotPBNTransitions(sim)
Run the code above in your browser using DataLab