PlotWidget Module Class
PlotWidget.RdWidget module that handles htmlwidget objects.
Super classes
DarwinShinyModules::ShinyModule -> DarwinShinyModules::Plot -> PlotWidget
Examples
library(DarwinShinyModules)
nD3Installed <- require(
"networkD3",
character.only = TRUE,
quietly = TRUE,
warn.conflicts = FALSE
)
if (nD3Installed) {
src <- c(
"A", "A", "A", "A",
"B", "B", "C", "C", "D"
)
target <- c(
"B", "C", "D", "J",
"E", "F", "G", "H", "I"
)
widgetModule <- PlotWidget$new(fun = simpleNetwork, args = list(Data = data.frame(src, target)))
if (interactive()) {
preview(widgetModule)
}
}