# NOT RUN {
#* Plots may open in a browser.
data(BlackJack, package="HydeNet")
plot(BlackJack)
HydePlotOptions(variable=list(shape = "rect", fillcolor = "#A6DBA0"),
determ = list(shape = "rect", fillcolor = "#E7D4E8",
fontcolor = "#1B7837", linecolor = "#1B7837"),
decision = list(shape = "triangle", fillcolor = "#1B7837",
linecolor = "white"),
utility = list(shape = "circle", fillcolor = "#762A83",
fontcolor = "white"))
plot(BlackJack)
HydePlotOptions(restorePackageDefaults = TRUE)
plot(BlackJack,
customNodes = customNode(payoff,
fillcolor = "purple", shape = "circle",
fontcolor = "white", height = "2",
style="filled"))
plot(BlackJack,
customNodes =
dplyr::bind_rows(
customNode(pointsAfterCard3,
shape = "circle",
style = "radial",
fillcolor = "#1B7837:#762A83",
fontcolor = "black",
height = "2"),
customNode(playerFinalPoints,
shape = "circle",
style = "wedged",
height = "3",
fillcolor = c("red:orange:yellow:green:blue:purple"))))
# }
Run the code above in your browser using DataLab