Skip to Main Content
Bayesian Networks
book

Bayesian Networks

by Marco Scutari, Jean-Baptiste Denis
June 2014
Intermediate to advanced content levelIntermediate to advanced
241 pages
6h 20m
English
CRC Press
Content preview from Bayesian Networks
The Discrete Case: Multinomial Bayesian Networks 31
Similarly, we can highlight nodes with nodeRenderInfo. We set their
colour and the colour of the node labels to black and their background to
grey.
> nodeRenderInfo(pp) <-
+ list(col = c("S" = "black", "E" = "black", "R" = "black"),
+ textCol = c("S" = "black", "E" = "black", "R" = "black"),
+ fill = c("E" = "grey"))
Once we have made all the desired modifications, we can plot the DAG again
with the renderGraph function from Rgraphviz.
> renderGraph(pp)
More complicated plots can be created by repeated calls to edgeRenderInfo
and nodeRenderInfo. These functions can be used to set several graphical
parameters for each arc or node, and provide a fine-grained control on the
appearance of the plot. Several
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Applications of Bayesian Reliability

Practical Applications of Bayesian Reliability

Yan Liu, Athula I. Abeyratne
Benefits of Bayesian Network Models

Benefits of Bayesian Network Models

Philippe Weber, Christophe Simon
Learning Bayesian Models with R

Learning Bayesian Models with R

Hari Manassery Koduvely

Publisher Resources

ISBN: 9781482225587