queryCpDistLs | R Documentation |
produce a plot of bnlearn::cpdist by performing bnlearn::cpdist on specified node, evidence and level.
queryCpDistLs(fitted, candidate, evidences, discPalette = "Set2", ...)
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 |
list of dataframe containing raw values
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.