g6_fit_center {g6R} | R Documentation |
Center graph
Description
This function pans the graph to the center of the viewport
Usage
g6_fit_center(graph, animation = NULL)
Arguments
graph |
A g6_proxy object created with |
animation |
Optional list containing animation configuration parameters for the focus action. Common parameters include:
If NULL, no animation will be applied. |
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.
See https://g6.antv.antgroup.com/en/api/viewport#graphfitcenteranimation for more details.
Value
The g6_proxy object (invisibly), allowing for method chaining.
See Also
[Package g6R version 0.1.0 Index]