Melissa Clarkson
March 2010
1
statnet version 2.1-1
document version 2
A guide to the built-in network datasets provided with the statnet package
Undirected edges
molecule
a synthetic network,
stored as a network object
nodes 20; no attributes
edges
28; no attributes
to load data data(molecule)
to view data
summary(molecule)
gplot(molecule, gmode="graph")
flomarriage
marriage ties among Renaissance Florentine families,
stored as a network object
nodes 16; with 3 numeric attributes plus names
edges
20; no attributes
to load data data(florentine)
to view data
summary(flomarriage)
to get info
?flomarriage
flo
same data, stored as a symmetric adjacency matrix
to load data
data(flo)
to view data
flo
flobusiness
business ties among Renaissance Florentine families,
gplot(flomarriage, gmode="graph")
stored as a network object
nodes 16; with 3 numeric attributes plus names
edges
15; no attributes
to load data data(florentine)
to view data
summary(flobusiness)
to get info
?flobusiness
gplot(flobusiness, gmode="graph")
2
faux.mesa.high
simulated data of in-school friendship network,
nodes 205; attributes of race, sex, grade
edges
203; no attributes
to load data data(faux.mesa.high)
to view data
summary(faux.mesa.high)
to get info
?faux.mesa.high
stored as a network object
gplot(faux.mesa.high, gmode="graph")
faux.magnolia.high
simulated data of in-school friendship network,
nodes 1461; attributes of race, sex, grade
edges
974; no attributes
to load data data(faux.magnolia.high)
to view data
summary(faux.magnolia.high)
to get info
?faux.magnolia.high
stored as a network object
gplot(faux.magnolia.high, gmode="graph",
vertex.cex=0.5, vertex.lty=0)
coleman
self-reported friendship ties among 73 boys in a high school,
stored as an adjacency matrix (73 × 73 × 2)
networks for two time points (fall and spring),
nodes 73
edges
234 and 263
to load data data(coleman)
to view data
coleman
to get info
?coleman
fall
gplot(coleman[1,,], gmode="graph")
fall only = blue
spring only = green
spring and fall = red
spring
palette(c("black", "#4682B4", "#7CCD7C", "black", "#CD0000"))
gplot(coleman[1,,]|coleman[2,,],edge.col=2*coleman[1,,]+3*coleman[2,,],
gmode="graph",vertex.lty=0, vertex.col="#222222", interactive=TRUE)
gplot(coleman[2,,], gmode="graph")
3
tribes
political alliances and enmities among 16 Gahuku-Gama sub-tribes,
stored as a network object
nodes 16; with names
edges
120 (complete graph); with attributes encoding type of relationship
to load data data(tribes)
to view data
summary(tribes)
to get info
?tribes
alliance = green
enmity = red
gplot(tribes,edge.col=
as.matrix(tribes,"pos",matrix.type="adjacency")*3
+ as.matrix(tribes,"neg",matrix.type="adjacency")*2)
Undirected edges, bipartite
davis network of 18 women and the 14 social events they attended,
stored as a network object
nodes 32; with names
edges
89; no attributes
to load data data(davis)
to view data
summary(davis)
to get info
?davis
gplot(davis, gmode="twomode",
usearrows=FALSE, displaylabels=TRUE,
boxed.labels=FALSE, label.cex=0.5,
interactive=TRUE)
4
Directed edges
samplk
network of positive relations within a monastery
(each monk named his top three choices),
three data sets represent three time points, and each is stored as
nodes 18; with attributes of name and group
edges
55, 57, and 56; no attributes
to load data data(samplk)
to view data
summary(samplk1)
summary(samplk2)
summary(samplk3)
a separate network object, samplk1, samplk2, samplk3
to get info
gplot(samplk1, gmode="digraph")
sampson
?samplk
gplot(samplk2, gmode="digraph")
gplot(samplk3, gmode="digraph")
this is the same data as samplk, but time-aggregated,
stored as a network object
nodes 18; with attributes of name and group
edges
88; with "nominations" attribute of 1, 2, or 3
to load data data(sampson)
to view data
summary(samplike)
to get info
?samplike
gplot(samplike, gmode="digraph",
interactive=TRUE)
5
emon
seven case studies of organizations cooperating in search-and-rescue activites, directed edges represent assistance from one organization to another,
stored as a list of seven network objects
[[1]]
[[2]]
[[3]]
[[4]]
[[5]]
[[6]]
[[7]]
Cheyenne
HurrFrederic
LakePomona
MtSi
MtStHelens
Texas
Wichita
14 nodes, 83 edges
21 nodes, 118 edges
20 nodes, 148 edges
13 nodes, 33 edges
27 nodes, 123 edges
25 nodes, 186 edges
20 nodes, 149 edges
nodes 8 attributes
edges
1 attribute (frequency of interaction, on scale of 1–4)
to load data data(emon)
to view data
summary(emon[[1]]) and such...
to get info
?emon
old_par <- par(no.readonly = TRUE)
par(mfrow=c(3,3))
for(i in 1:length(emon)) {
gplot(emon[[i]], main=names(emon[i]))
}
par(old_par)
© Copyright 2026 Paperzz