Graphical User Interface with Integrated 'Diagrammer' for 'Lavaan'
Overview
Provides a graphical user interface with an integrated diagrammer for latent variable models from the 'lavaan' package. It offers two core functions: first, lavaangui() launches a web application that allows users to specify models by drawing path diagrams, fitting them, assessing model fit, and more; second, plot_lavaan() creates interactive path diagrams from models specified in 'lavaan'. After customizing a diagram interactively, export_plot() saves it to a file, enabling reproducible scripts without sacrificing fine-grained control over appearance. Karch (2024) <doi: 10.1080/10705511.2024.2420678> contains a tutorial.
- Added:
export_plot()function to export the graph as PNG, JPEG, SVG, or PDF - Added:
plot_lavaan()now saves and restores the layout and viewport between sessions. - Added: Full composite variable support — composites are their own class with a hexagonal node shape.
- Added: Lavaan labels and display labels are now distinguished; display labels can be edited independently. Display labels support simple math/LaTeX-style notation and multi-line text.
- Added: Option to hide undirected edges.
- Added: Reset button to restore the default state.
- Added: Variable selector for model templates validates that selected variables are still available.
- Added: Package-level documentation page.
- Bugfix: Grid options were not saved with the model file.
- Bugfix: Serialization/state bug in model save and load.
- Bugfix: Minor bug in
lavInspectoutput handling. - Bugfix: Divider in context menu was not rendered correctly.
Show all changes in 0.4.0Hide the rest of the changes in 0.4.0
- Bugfix: Guard added for undefined nodes in cycle detection.
- Security: Removed use of
eval()on the server side. - Appearance: Removed the linked/not-linked visual distinction for observed nodes.
- Developer: Detection of local vs. shinyapps.io deployment now uses the
wherecommand; Heroku support removed.
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: lavaangui/R/miniQGraph.R (.Names: 3) '.Names' should be changed to 'names'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 5 (1 internal)includes a package overview page
- Examples that run
- 100%4 run in a plain check (4 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 20%
Downloads
Repository
- PRs merged (all time)
- 67%
- Median days to close, 50 most recently updated closed issues
- 24
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/karchjd/lavaangui on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Codexfirst seen 2025-06-10Pull request it wrote: opened by a project member
- Claude Codefirst seen on or before 2026-03-11Named in .Rbuildignore: .claudeCommits: at least 1 crediting it in the message
- Claude Opus 4.61 commit · Mar 2026
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.4.0Latest
- 0.3.22025-11-30 · diff ↗
- 0.3.12025-11-25 · diff ↗
- 0.3.02025-10-16 · diff ↗
- 0.2.62025-08-19 · diff ↗
- 0.2.52025-07-15 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.2.42025-02-20 · diff ↗
- 0.2.32025-01-30 · diff ↗
- 0.2.12024-12-05 · diff ↗
- 0.2.0
- 0.1.22024-09-12
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-09-12
- Total releases
- 11 / 2 yrs
- License
- GPL (>= 3) OSI
- Download size
- 805 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("lavaangui")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.