queryCpDistLs: queryCpDistLs

queryCpDistLsR Documentation

queryCpDistLs

Description

produce a plot of bnlearn::cpdist by performing bnlearn::cpdist on specified node, evidence and level.

Usage

queryCpDistLs(fitted, candidate, evidences, discPalette = "Set2", ...)

Arguments

fitted

bn.fit object

candidate

name of node

evidences

the evidences

discPalette

palette to be used for plotting if the event is discrete

...

other parameters passed to bnlearn cpdist

Value

list of dataframe containing raw values

Examples

library(bnlearn)
data("exampleEaRes")
data("exampleGeneExp")
net <- bngeneplot(exampleEaRes, exampleGeneExp,
                  pathNum=1, returnNet=TRUE)
fitted <- bn.fit(net$av, net$df)
res <- queryCpDistLs(fitted, candidate="ERCC4",
              evidences=c("ERCC2<0.1","ERCC2>0.5","ERCC2>0.8"), n=500)

noriakis/CBNplot documentation built on Oct. 10, 2024, 12:21 p.m.