Skip to contents

Creates an htmlwidget that renders a GEXF file using the bundled gexf-js library.

Usage

gexfjs(
  gexf = system.file("gexf-graphs/lesmiserables.gexf", package = "rgexf"),
  width = "100%",
  height = "400px"
)

gexfjsOutput(outputId, width = "100%", height = "400px")

renderGexfjs(expr, env = parent.frame(), quoted = FALSE)

Arguments

gexf

Either a gexf object, or a path to a .gexf file. Defaults to the bundled Les Miserables example.

width, height

Widget dimensions. Default to "100%" width and "400px" height, so the widget spans the full available width.

outputId

Shiny output ID.

expr

An expression that returns a gexfjs widget.

env

The environment in which to evaluate expr.

quoted

Logical scalar. Is expr a quoted expression?

Value

An htmlwidget object.