plotDBN {BiDAG}R Documentation

Plotting a DBN

Description

This function can be used for plotting initial and transition structures of a dynamic Bayesian network.

Usage

plotDBN(DBN, struct = c("init", "trans"), b = 0, ...)

Arguments

DBN

binary matrix (or a graph object) representing a 2-step DBN (compact or unrolled)

struct

option used to determine if the initial or the transition structure should be plotted; accaptable values are init or trans

b

number of static variables in the DBN, 0 by default; note that for function to work correctly all static variables have to be in the first b columns of the matrix

...

optional parameters passed to Rgraphviz plotting functions e.g. main, fontsize

Value

plots the DBN defined by the adjacency matrix 'DBN' and number of static and dynamic variables. When 'struct' equals "trans" the transition structure is plotted, otherwise initial structure is plotted

Author(s)

Polina Suter

Examples

plotDBN(DBNmat, "init", b=3)
plotDBN(DBNmat, "trans", b=3)


[Package BiDAG version 2.0.4 Index]