networking - Manipulating Network Data in R -
I have a description of the weight of the edge among the nodes. Is there any package to work with such data? For example, I would like to make the following information as a network:
p1 p2 count 1 now 100 2 ac 200 3 ad 100 4 bc 80 5bd 90bb 100 100 cd 100 8 CE 40 9D 60 is an option package, for statistical social network analysis Part of the family of R packages. It handles network data in a rare way, which is good for large data sets.
Below, I do the following:
- Load the adGlist (first two columns) in the network object
- having an edge attribute in the name of the load
- Plot the network with a plot (see the help page to change the thickness of the edges.)
- Plot a saosimetrix (just set the set of 5x5 blocks Represents the matrix, where (i, j) is relative to the cell Counting is shaded)
A = readable (file = "SO". "Txt", Header = T) AP1 P2 count 1 AB 100 2 AC 200 3 ads 100 4 BC 80 5 BD 90 6 100 7 CD 100 8 CEE 409D60 Library (Network) Net = Network (A [, 1: 2]) # Get summary information about your network net network features: vertical = 5 Guided = TRUE hyper = falls loop = FALSE multiple = FALSE bipartite = FALSE total edges = 9 missing edges = 0 non-missing edges = 9 versatile vs Symptom name: vertex.names adjacency matrix: ABCDA 0 1 1 1 0 0 0 1 1 C 0 0 0 1 0 0 0 0 0 0 0 set.edge.DetVit (Net, "Weight", A [, 3]) Jplot (Net) ## Another good feature: s = as.sociomatrix (pure, attrname = "weight") plot.sociomatrix (s)
Comments
Post a Comment