#' Convert list of connectivity matrices to igraph objects
#'
#' This function converts a list of adjacency or correlation matrices to igraph objects.
#' @param cormats a list of matrices
#' @return A list of igraph objects
#' @export
#' @author Brandon Vaughan
#' @examples
#' graphs = mats_to_graphs(cormats)
#'
mats_as_graphs = function(cormats) {
pbapply::pblapply(1:length(cormats), function(x) {graph.adjacency(cormats[[x]], weighted=T, mode="undirected", diag=TRUE)})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.