Package: semptools 0.3.3.19

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.19.tar.gz
semptools_0.3.3.19.zip(r-4.7)semptools_0.3.3.19.zip(r-4.6)semptools_0.3.3.19.zip(r-4.5)
semptools_0.3.3.19.tgz(r-4.6-any)semptools_0.3.3.19.tgz(r-4.5-any)
semptools_0.3.3.19.tar.gz(r-4.7-any)semptools_0.3.3.19.tar.gz(r-4.6-any)
semptools_0.3.3.19.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
semptools/json (API)

# 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.38 score 8 stars 2 packages 134 scripts 1.1k downloads 52 exports 108 dependencies

Last updated from:9107668ad1. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK177
source / vignettesOK254
linux-release-x86_64OK211
macos-release-arm64OK110
macos-oldrel-arm64OK120
windows-develOK147
windows-releaseOK138
windows-oldrelOK130
wasm-releaseOK191

Exports:add_objectadd_rsqauto_factor_point_toauto_indicator_orderauto_layout_mediationchange_node_labeldrop_nodesget_edge_attributeget_node_attributeis_dv_residvarkeep_nodeslavaan_indicator_orderlayout_matrixmark_cimark_semark_sigmove_nodenode_labels_equal_scaleq_parallelq_serialq_simplequick_parallel_mediationquick_serial_mediationquick_simple_mediationrescale_layoutrotate_residsafe_edge_label_positionsafe_resid_positionset_cfa_layoutset_curveset_edge_attributeset_edge_colorset_edge_labelset_edge_label_bgset_edge_label_positionset_edge_label_sizeset_edge_line_typeset_edge_line_widthset_graph_marginsset_node_attributeset_node_border_colorset_node_border_widthset_node_colorset_node_heightset_node_label_colorset_node_label_sizeset_node_labels_equal_scaleset_node_shapeset_node_sizeset_node_widthset_sem_layoutto_list_of_lists

Dependencies:abindarmbackportsbase64encBHbootbslibcachemcarDatacheckmatecliclustercodacolorspacecorpcorcpp11data.tabledigestevaluatefarverfastmapfdrtoolfontawesomeforeignFormulafsggplot2glassoglueGPArotationgridExtragtablegtoolshighrHmischtmlTablehtmltoolshtmlwidgetsigraphisobandjpegjquerylibjsonliteknitrkutilslabelinglatticelavaanlifecyclelisrelToRlme4magrittrMASSMatrixmemoisemimimeminqamnormtmvtnormnlmenloptrnnetnumDerivOpenMxopenxlsxpbapplypbivnormpkgconfigplyrpngpsychqgraphquadprogR6rappdirsrbibutilsRColorBrewerRcppRcppEigenRcppParallelRdpackreformulasreshape2rlangrmarkdownrockchalkrpartrpfrstudioapiRUnitS7sassscalessemsemPlotStanHeadersstringistringrtinytexvctrsviridisLitewithrxfunXMLxtableyamlzip

A Quick Start Guide on Using semptools
Introduction | Mark all parameter estimates by asterisks based on p-values: mark_sig() | Add standard error estimates or confidence interval: mark_se() and mark_ci() | Rotate the residuals: rotate_resid() and safe_resid_position() | Set the curve attributes: set_curve() | Set the positions of parameters: set_edge_label_position() | Change one or more node labels: change_node_label() | Using pipe-operator | Limitations

Last update: 2026-06-21
Started: 2021-09-05

Keep or Drop Selected Variables
Introduction | Example | Keep Or Drop? It Depends

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

Layout Matrices
Introduction | What layout Does in semPlot::semPaths. | layout_matrix() in semptools | factor_layout in set_sem_layout()

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

Models with Second-Order Factors
Introduction | The Initial semPaths Plot | Modify the Plot | Special Treatment | Example | Further information

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

Quick Start To set_cfa_layout
Introduction | The Initial semPaths Graph | Order the Indicators and Factors | Change the Curvatures of the Factor Covariances | Move the Loadings | Rotate the Model | Pipe | Limitations

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

Quick Start To set_sem_layout
Introduction | The Initial semPaths Graph | Assign Indicators to Factors | Move Indicators | "Push" the indicators away | "Spread" out the indicators | Move the Loadings | Pipe | Limitations

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
Get the Attribute Values of Selected Edgesget_edge_attribute
Get the Attribute Values of Selected Nodesget_node_attribute
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 Edge Label Attributes of Selected Edgesset_edge_label set_edge_label_attributes set_edge_label_bg set_edge_label_position set_edge_label_size
Set the Line Types of Selected Edgesset_edge_line_type
Set the Line Widths of Selected Edgesset_edge_line_width
Set Selected Attributes of a Plotnode_labels_equal_scale set_graph_attributes set_graph_margins set_node_labels_equal_scale
Set the Attributes of Selected Nodesset_node_attribute
Set the Attributes of Node Bordersset_node_border set_node_border_color set_node_border_width
Set the Colors of Selected Nodesset_node_color
Set Label Attributes of Selected Nodesset_node_label set_node_label_color set_node_label_size
Set the Sizes of Selected Nodesset_node_height set_node_shape set_node_size set_node_width
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