getGraph <- function(D) { mat = abs(crossprod(D)) diag(mat) = 0 return(graph.adjacency(mat, mode=c("upper"))) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.