igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] Need help with interactive plotting of igraph processed data us


From: RK LATA
Subject: [igraph] Need help with interactive plotting of igraph processed data using networkD3
Date: Sat, 25 Jun 2016 00:03:58 -0700

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]