Learn R Programming

ggsem is an R package designed for interactive and reproducible SEM visualization. It provides a dedicated environment for building, styling, and exploring path diagrams for structural equation modeling (SEM) and network analysis.

Why use ggsem for SEM Visualization?

  • Interactive Parameter Visualization: Direct manipulation of nodes, edges, and labels without manual coding of coordinates.
  • Multi-Group SEM Support: Easily create side-by-side or composite visualizations for multi-group SEM diagrams.
  • Workflow Integration: Seamlessly import model objects from lavaan, blavaan, OpenMx, tidySEM, and semPlot etc (from 9 classes of objects, 13 packages).
  • Complete Reproducibility: Export figure metadata to recreate or modify your ggplot2 diagrams via script at any time.

Documentation & Examples

For detailed guides on multi-group workflows and interactive features, visit the official documentation:

Copy Link

Version

Install

install.packages('ggsem')

Monthly Downloads

620

Version

0.9.9

License

GPL-2

Maintainer

Seung Hyun (Sam) Min

Last Published

January 28th, 2026

Functions in ggsem (0.9.9)

ggsem_launch.ggsem_builder

Launch ggsem Shiny application from builder
ggsem_silent

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

Launch ggsem Shiny application
ggsem_builder

Create multi-group SEM visualizations
launch

Launch method for ggsem_builder objects
ggsem

Launch ggsem Shiny Application
get_axis_range

Get axis range of a ggplot object
csv_to_ggplot

Convert CSV Files (from ggsem Shiny App) to a ggplot Object
draw_loops

Draw Self-loop Arrows on a ggplot Object
adjust_axis_range

Adjust Axis Range of a Plot of a ggplot2 Plot
add_group

Add a SEM group to the visualization
adjust_axis_space

Adjust Surrounding White Space of a ggplot2 Plot
draw_lines

Draw Lines on a ggplot Object from Line Data
draw_annotations

Draw Text Annotations to a ggplot Object
draw_points

Draw Points on a ggplot Object
metadata_to_ggplot

Convert ggsem workflow metadata directly to a ggplot object
save_figure

Save a ggplot Object with Adjusted Dimensions
set_type

Set default type for the builder
ggsem_launch.default

Launch ggsem Shiny application from objects