Skip to contents

Widget module that handles htmlwidget objects.

Methods

Public methods

Inherited methods


Method clone()

The objects of this class are cloneable with this method.

Usage

PlotWidget$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

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)
  }
}