View source: R/ResIN_to_igraph.R
| ResIN_to_igraph | R Documentation |
as.igraph() method instead.Deprecated/legacy function. Transforms the output of the ResIN function into an [igraph](https://igraph.org/r/doc/cluster_leading_eigen.html) object. Now simply a wrapper for the as.igraph() method.
ResIN_to_igraph(ResIN_object, igraph_arglist = NULL)
ResIN_object |
the output of the ResIN function (a list with class ResIN). |
igraph_arglist |
an optional argument list to be supplied to the igraph::graph_from_adjacency_matrix function. If NULL, default is: list(mode = "undirected", weighted = TRUE, diag = FALSE). |
A class igraph object.
Csardi G, Nepusz T (2006). “The igraph software package for complex network research.” InterJournal, Complex Systems, 1695. https://igraph.org.
as.igraph as the recommended interface.
## Load the 12-item simulated Likert-type ResIN toy dataset
data(lik_data)
## Run the function:
igraph_output <- as.igraph(ResIN(lik_data, plot_ggplot = FALSE))
class(igraph_output)
## Plot and/or investigate as you wish:
igraph::plot.igraph(igraph_output)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.