ggsem_silent: Run ggsem silently (without launching the app) and get the...

View source: R/ggsem_silent.R

ggsem_silentR Documentation

Run ggsem silently (without launching the app) and get the visualization outputs

Description

This function processes a saved ggsem workflow metadata file and extracts all visualization data (points, lines, annotations, loops) that would be displayed in the Shiny app. It reproduces both SEM and network visualizations from the saved session state.

Usage

ggsem_silent(metadata)

Arguments

metadata

A file path of metadata or a list containing ggsem workflow metadata, typically loaded from an RDS file saved by the ggsem Shiny app using the "Export Workflow" functionality. The metadata should contain SEM groups, network groups, visual elements, and group labels.

Value

A list of four data frames:

  • points - Data frame containing point coordinates and properties

  • lines - Data frame containing line coordinates and properties

  • annotations - Data frame containing text annotations

  • loops - Data frame containing loop coordinates and properties

Examples

## Not run: 
# Load a saved ggsem workflow
workflow_metadata <- readRDS("ggsem_workflow_20240101_120000.rds")

# Extract visualization data
viz_data <- ggsem_silent(workflow_metadata)

# Access the different components
points <- viz_data$points
lines <- viz_data$lines
annotations <- viz_data$annotations
loops <- viz_data$loops

## End(Not run)

ggsem documentation built on Oct. 16, 2026, 1:06 a.m.