plot_estimated_cor_network {simdata} | R Documentation |
Visualize estimated correlation matrix as a network
Description
Based on approximation via simulation specified by given simulation design.
Convenience wrapper for combining estimate_final_correlation
and
plot_cor_network
.
Usage
plot_estimated_cor_network(
obj,
n_obs = 1e+05,
cor_type = "pearson",
seed = NULL,
show_categorical = TRUE,
return_network = FALSE,
...
)
Arguments
obj |
S3 class object of type |
n_obs |
Number of observations to simulate. |
cor_type |
Can be either a character ( |
seed |
Random number seed. NULL does not change the current seed. |
show_categorical |
If TRUE, marks categorical variables differently from numeric ones.
Determined by the |
return_network |
If TRUE, the |
... |
Passed to |
Details
This function is useful to estimate the correlation network of a simulation
setup after the initial underlying distribution Z
has been transformed to
the final dataset X
.
Value
If return_network
is TRUE
, then an igraph
network object is returned
that can be plotted by the user using e.g. the interactive
igraph::tkplot
function. Otherwise, the network
object is plotted directly and no output is returned.
See Also
plot_cor_network
,
estimate_final_correlation