plot.cibn: Graphic for the DAG of a causal independence Bayesian network

Description Usage Arguments See Also Examples

View source: R/cibn.r

Description

Obtain the graphic for the DAG of a causal independence Bayesian network.

Usage

1
2
## S3 method for class 'cibn'
plot(x, full=FALSE, ...)

Arguments

x

An object of class cibn.

full

Logical value indicating whether the full DAG (i.e., augmented with latent causes and auxiliary nodes implied by the CID) should be displayed. If FALSE (the default), the DAG before the CID is displayed.

...

Further graphical parameters.

See Also

new.cibn.

Examples

1
2
3
4
5
data(bankrisk_code)
bankrisk_bn <- new.cibn(bankrisk_code)
#
plot(bankrisk_bn, attrs=list(edge=list(arrowsize=0.5)))
plot(bankrisk_bn, attrs=list(edge=list(arrowsize=0.5)), full=TRUE)  ## full DAG

alessandromagrini/cibn documentation built on Feb. 7, 2022, 10:55 p.m.