Hi there, I am able to process an generate community plot using plotting function provided in igraph. I would like to plot an interactive community plot with networkD3. Can anyone please help? Given below is the code. I am using to process my epitope binning analysis data.
library(networkD3) library(igraph) m <- as.matrix(read.csv(file.choose(), header=TRUE, row.names =1)) set.seed(123) g <- graph.incidence(m) spp <- bipartite.projection(g)[[1]] fg <- fastgreedy.community(spp) fr <- layout.fruchterman.reingold(spp) ffr <- layout_with_fr(spp,dim = 2,niter = 100000) plot(fg,spp,layout = ffr,vertex.label.cex = 0.8,vertex.label.font = 1) Thanks, RK Latha
_______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
