View source: R/methods-ResIN.R
| as.igraph.ResIN | R Documentation |
Converts a ResIN object to an igraph graph using the adjacency
matrix stored in x$aux_objects$adj_matrix.
## S3 method for class 'ResIN'
as.igraph(x, mode = "undirected", weighted = TRUE, diag = FALSE, ...)
x |
A |
mode, weighted, diag |
Passed to |
... |
Additional arguments passed to |
An igraph object.
## 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.