Learn R Programming

g6R (version 0.1.0)

g6_set_options: Set options for a g6 graph via proxy

Description

This function allows updating various configuration options of an existing g6 graph instance using a proxy object within a Shiny application.

Usage

g6_set_options(graph, ...)

Value

The g6_proxy object (invisibly), allowing for method chaining.

Arguments

graph

A g6_proxy object created with g6_proxy.

...

Named arguments representing the options to update and their new values. These can include any valid g6 graph options such as fitView, animate, modes, etc.

Details

This function can only be used with a g6_proxy object within a Shiny application. It will not work with regular g6 objects outside of Shiny.

The function allows updating various graph options dynamically without having to re-render the entire graph. This is useful for changing behavior, appearance, or interaction modes in response to user input.

See Also

g6_proxy