powered by
Generating graph from data matrix
generate_g( data, method = "pearson", cor.thr = 0.6, neg.flag = 1, node.col = "red", node.size = 7, edge.col = "blue", edge.width = 3 )
igraph object
data matrix or data frame
c("Pearson", "Spearman", "Kendall")
a threshold of correlation coefficient (default: r >= 0.6)
flag where uses or not negative correlations
specifies color of nodes in a graph (default: red)
specifies size of nodes in a graph (default: 7)
specifies color of edges in a graph (default: blue)
specifies width of edges in a graph (default: 3)
Atsushi Fukushima
library(igraph) mat <- matrix(runif(100), nr=10) rownames(mat) <- as.character(1:10) generate_g(mat)
Run the code above in your browser using DataLab