nodes <- function(M, nodeRank){
node1 <- rowSums(abs(M))
node2 <- colSums(abs(M))
node <- node1 + node2
node[rank(node)<length(node)-nodeRank+1]<-0
return(node)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.