surfwidget-shiny: Shiny bindings for surfwidget

surfwidgetOutputR Documentation

Shiny bindings for surfwidget

Description

Output and render functions for using surfwidget within Shiny applications and interactive Rmd documents.

Update the configuration of an existing surfwidget.

Usage

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

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

updateSurfwidgetConfig(session, id, config)

updateColorMap(widget, colorMap)

updateIRange(widget, min, max)

updateThreshold(widget, min, max)

updateVertexColors(widget, colors)

updateAlpha(widget, alpha)

Arguments

outputId

output variable to read from

width, height

Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

expr

An expression that generates a surfwidget

env

The environment in which to evaluate expr.

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.

session

The session object passed to function given to shinyServer.

id

The ID of the surfwidget output.

config

A list of configuration options to update. See surfwidget for details on available options.


bbuchsbaum/neurosurf documentation built on June 10, 2025, 8:22 p.m.