data science foll


  • Home

  • Tags

  • Categories

  • Archives

  • Search

网络图 igraph

Posted on 2018-09-23 | In R | Visitors:
1
2
3
4
5
install.packages("igraph")
library(igraph)
data=matrix(sample(0:1, 400, replace=TRUE, prob=c(0.8,0.2)), nrow=20)
network=graph_from_adjacency_matrix(data , mode='undirected', diag=F )
plot(network, layout=layout.sphere)

igraph.png

# R # igragh # matrix # sample # layout
二维直方图 hexbin
火山图 lattice
庞锦烽

庞锦烽

山高路远,道阻且长

61 posts
14 categories
90 tags
RSS
GitHub weibo
© 2018 — 2019 庞锦烽
Powered by Hexo
|
Theme — NexT.Muse v5.1.4