nutterb / dbn

Simulation of Discrete-Time Dynamic Bayesian Networks
0 stars 0 forks source link

Things to do next #6

Closed nutterb closed 7 years ago

nutterb commented 8 years ago

I won't open a new issue for this each time. I'll just keep adding checkboxes to make sure I do things in the right order (and write the appropriate documentation and tests before I move on to the next task)

jarrod-dalton commented 8 years ago

This may be difficult to implement within the package, as I'm uncertain whether or not there is an API for R, but I have used this package for drawing really nice temporal Bayesian networks.

https://github.com/jluttine/tikz-bayesnet

Here's an example of what that kind of software produces:

image

There, you have the ability of making explicit the location of the plotted nodes. Standard algorithms in GraphViz end up putting nodes in locations that optimize some criterion, not necessarily in time order.

All this said, I do however think you have the ability to explicitly place nodes in specific locations using DiagrammeR/GraphViz. If this is the case, then we might just line up the temporal nodes in as many vertical columns as necessary to cover all the dependencies. Something like the below diagram (which was made with PowerPoint, but you get the idea):

image