Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .r-cache/R/renv/projects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:/Users/mattp/ArchNetSci
1 change: 1 addition & 0 deletions .r-cache/R/sass/7b36f064b920db52d4193d8e352723a7

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .r-cache/R/sass/efa802adb72651a608ebef004fcc7eac

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 01-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ If you choose to install everything, however, you can simply run the chunk of co
```{r, message=F, warning=F, eval=F}
packages <- c("tidyverse", "ape", "devtools", "igraph", "statnet", "intergraph",
"tnet", "ggplot2", "rjson", "d3r", "cccd", "networkD3", "visNetwork",
"GISTools", "rgeos", "maptools", "sf", "igraphdata", "ggrepel",
"GISTools", "sf", "igraphdata", "ggrepel",
"ggsn", "tidyverse", "superheat", "ggplotify", "ggforce", "colorspace",
"ggmap", "dplyr", "ggpubr", "ggraph", "reshape2", "multinet",
"RColorBrewer", "Rcpp", "deldir", "vegan", "geosphere", "networkDynamic",
Expand Down
307 changes: 307 additions & 0 deletions 01-data.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 02-network-data-formats.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ weighted_net <-
E(weighted_net)$weight <- cibola_edgelist$weight

# Explore the first few rows and columns of network object
head(get.data.frame(weighted_net))
head(igraph::as_data_frame(weighted_net))

# View network as adjacency matrix. Notice the attr="weight" command that
# indicates which edge attribute to use for values in the matrix
Expand Down
1,373 changes: 1,373 additions & 0 deletions 02-network-data-formats.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions 03-exploratory-analysis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ igraph::degree(directed_net, mode = "out")[1:5] # out-degree
igraph::degree(simple_net, normalize = T)[1:5]

# it is also possible to directly plot the degree distribution for
# a given network using the degree.distribution function.
# a given network using the degree_distribution function.
# Here we embed that call directly in a call for a histogram plot
# using the "hist" function
hist(igraph::degree.distribution(simple_net))
hist(igraph::degree_distribution(simple_net))

# graph level centralization
igraph::centr_degree(simple_net)
Expand Down Expand Up @@ -444,10 +444,10 @@ R allows you to use a variety of common cluster detection algorithms to define g

#### Girvan-Newman Clustering{#GirvanNewman}

Girvan-Newman clustering is a divisive algorithm based on betweenness that defines a partition of network that maximizes modularity by removing nodes with high betweenness iteratively (see discussion in Brughmans and Peeples 2023 Chapter 4.6). In R this is referred to as the `igraph::edge.betweenness.community` function. This function can be used on directed or undirected networks with or without edge weights. This function outputs a variety of information including individual edge betweenness scores, modularity information, and partition membership. See the help documents for more information
Girvan-Newman clustering is a divisive algorithm based on betweenness that defines a partition of network that maximizes modularity by removing nodes with high betweenness iteratively (see discussion in Brughmans and Peeples 2023 Chapter 4.6). In R this is implemented with the `igraph::cluster_edge_betweenness` function. This function can be used on directed or undirected networks with or without edge weights. This function outputs a variety of information including individual edge betweenness scores, modularity information, and partition membership. See the help documents for more information

```{r}
gn <- igraph::edge.betweenness.community(simple_net)
gn <- igraph::cluster_edge_betweenness(simple_net)
set.seed(4353)
plot(simple_net, vertex.color = gn$membership)
```
Expand Down
1,145 changes: 1,145 additions & 0 deletions 03-exploratory-analysis.md

Large diffs are not rendered by default.

1,073 changes: 1,073 additions & 0 deletions 04-uncertainty.md

Large diffs are not rendered by default.

Loading