Package: semptools 0.3.3

semptools: Customizing Structural Equation Modelling Plots

Most function focus on specific ways to customize a graph. They use a 'qgraph' output as the first argument, and return a modified 'qgraph' object. This allows the functions to be chained by a pipe operator.

Authors:Shu Fai Cheung [aut, cre], Mark Hok Chio Lai [aut]

semptools_0.3.3.tar.gz
semptools_0.3.3.zip(r-4.7)semptools_0.3.3.zip(r-4.6)semptools_0.3.3.zip(r-4.5)
semptools_0.3.3.tgz(r-4.6-any)semptools_0.3.3.tgz(r-4.5-any)
semptools_0.3.3.tar.gz(r-4.7-any)semptools_0.3.3.tar.gz(r-4.6-any)
semptools_0.3.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
semptools/json (API)
NEWS

# Install 'semptools' in R:
install.packages('semptools', repos = c('https://sfcheung.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sfcheung/semptools/issues

Pkgdown/docs site:https://sfcheung.github.io

Datasets:

On CRAN:

Conda:

diagramgraphlavaanplotsemstructural-equation-modeling

8.19 score 8 stars 2 packages 110 scripts 1.4k downloads 33 exports 108 dependencies

Last updated from:bc8a1c60a6. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK208
source / vignettesOK235
linux-release-x86_64OK168
macos-release-arm64OK149
macos-oldrel-arm64OK104
windows-develOK181
windows-releaseOK148
windows-oldrelOK142
wasm-releaseOK153

Exports:add_objectadd_rsqauto_factor_point_toauto_indicator_orderauto_layout_mediationchange_node_labeldrop_nodesis_dv_residvarkeep_nodeslavaan_indicator_orderlayout_matrixmark_cimark_semark_sigmove_nodeq_parallelq_serialq_simplequick_parallel_mediationquick_serial_mediationquick_simple_mediationrescale_layoutrotate_residsafe_edge_label_positionsafe_resid_positionset_cfa_layoutset_curveset_edge_attributeset_edge_colorset_edge_label_positionset_node_attributeset_sem_layoutto_list_of_lists

Dependencies:abindarmbackportsbase64encBHbootbslibcachemcarDatacheckmatecliclustercodacolorspacecorpcorcpp11data.tabledigestevaluatefarverfastmapfdrtoolfontawesomeforeignFormulafsggplot2glassoglueGPArotationgridExtragtablegtoolshighrHmischtmlTablehtmltoolshtmlwidgetsigraphisobandjpegjquerylibjsonliteknitrkutilslabelinglatticelavaanlifecyclelisrelToRlme4magrittrMASSMatrixmemoisemimimeminqamnormtmvtnormnlmenloptrnnetnumDerivOpenMxopenxlsxpbapplypbivnormpkgconfigplyrpngpsychqgraphquadprogR6rappdirsrbibutilsRColorBrewerRcppRcppEigenRcppParallelRdpackreformulasreshape2rlangrmarkdownrockchalkrpartrpfrstudioapiRUnitS7sassscalessemsemPlotStanHeadersstringistringrtinytexvctrsviridisLitewithrxfunXMLxtableyamlzip

A Quick Start Guide on Using semptools

Rendered fromsemptools.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2025-08-17
Started: 2021-09-05

Keep or Drop Selected Variables

Rendered fromkeep_or_drop_nodes.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2023-10-15
Started: 2021-09-05

Layout Matrices

Rendered fromlayout_matrix.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2023-10-15
Started: 2021-09-05

Models with Second-Order Factors

Rendered fromsecond_order.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2023-10-15
Started: 2022-09-04

Quick Start To set_cfa_layout

Rendered fromquick_start_cfa.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2023-10-15
Started: 2020-04-19

Quick Start To set_sem_layout

Rendered fromquick_start_sem.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2023-10-15
Started: 2020-04-19

Readme and manuals

Help Manual

Help pageTopics
Add a Fit Object to a 'qgraph' Objectadd_object
Add R-Squares to Endogenous Variablesadd_rsq
Create a Matrix for 'factor_point_to'auto_factor_point_to
Determine the Order of Indicators Automaticallyauto_indicator_order
Set the Layout of a Mediation Model Automaticallyauto_layout_mediation
Sample dataset pa_examplecfa_example
Change node labelschange_node_label
Identify dependent Variable residual varianceis_dv_residvar
Keep or drop nodesdrop_nodes keep_drop_nodes keep_nodes
Determine the Order of Indicators Using a 'lavaan' Model Syntaxlavaan_indicator_order
Create the layout matrix for semPathslayout_matrix
Add Standard Error/Confidence Interval Estimates to Parameter Estimates (Edge Labels)mark_ci mark_se
Mark Parameter Estimates (Edge Labels) Based on p-Valuemark_sig
Move Nodes in a Plotmove_node
Sample dataset pa_examplepa_example
Sample dataset pa_example_3covspa_example_3covs
Quick Plots of Common Modelsquick_parallel_mediation quick_sem_plot quick_serial_mediation quick_simple_mediation q_parallel q_serial q_simple
Rescale the Layoutrescale_layout
Rotate the residuals of selected nodesrotate_resid
Adjust Edge Label Positions to Avoid Overlapping Labelssafe_edge_label_position
Adjust Residual Positionssafe_resid_position
Sample dataset sem_2nd_order_examplesem_2nd_order_example
Sample dataset sem_examplesem_example
Configure the layout of factors of a CFA graph by semPathsset_cfa_layout
Bend or Straighten Selected edgesset_curve
Set the Attributes of Selected Edgesset_edge_attribute
Set the Colors of Selected Edgesset_edge_color
Set the positions of edge labels of selected edgesset_edge_label_position
Set the Attributes of Selected Nodesset_node_attribute
Configure the layout of factors of an SEM graph by semPlot::semPathsset_sem_layout
Convert a named vector to a list of liststo_list_of_lists