Closed mattansb closed 3 years ago
This is resolved with the latest update - thanks!
library(lavaan)
#> This is lavaan 0.6-7
#> lavaan is BETA software! Please report any bugs.
library(tidySEM)
res <- sem("dist ~ speed", cars)
graph_sem(res)
graph_sem(res, edges = get_edges(res))
graph_sem(res, label = "est_sig_std")
graph_sem(res, edges = get_edges(res, label = "est_sig_std"))
Created on 2020-10-14 by the reprex package (v0.3.0)
@mattansb thank you for debugging this, it was very helpful!
@cjvanlissa I will be using this for teaching in the spring semester - great stuff! Thanks!
graph_sem()
seems to plot the unstandardized parameter, whileget_edges()
gets the standerdized parameters.So we get:
Created on 2020-07-03 by the reprex package (v0.3.0)
Which seems like an odd behavior.
I'd expect:
get_edges()
to return various values (est, est_sig, std, std_sig, sig... or something like that)graph_sem()
to have alabel_edge
argument to choose the labels of the edges from the result ofget_edges()
.I guess this would need a complimentary
label_node
argument to choose the labels of the nodes from the result ofget_nodes()
. (Instead oflabel
, which is documented as controlling the label of the nodes, but actually seems to control the labels of the edges?)