rgl_interactive_plots_Description: Navigating and Embedding the Interactive Plots

rgl_interactive_plots_DescriptionR Documentation

Navigating and Embedding the Interactive Plots

Description

Navigating and Embedding the Interactive Plots

Navigating and Embedding the Interactive Plots

To navigate the interactive Open GL window and html widget, left click and drag the cursor to rotate the meshes. Use the scroll wheel or right click and drag to zoom. Press the scroll wheel and drag to change the field-of-view. For Open GL windows, execute snapshot to save the current window as a .png file, close3d to close the window, and view3d to programmatically control the perspective.

To embed an interactive plot in an R Markdown document, first execute rgl::setupKnitr() to prepare the document for embedding the widget. Then execute the plot command as you normally would to create a widget (i.e. without specifying fname, and by requesting more than one idx or by setting widget to TRUE). When the R Markdown document is knitted, the interactive widget should be displayed below the chunk in which the plot command was executed. See the vignette for an example.


mandymejia/ciftiTools documentation built on Feb. 28, 2024, 11:20 a.m.