Skip to content

Commit

Permalink
edge density
Browse files Browse the repository at this point in the history
  • Loading branch information
carlylovas committed Jan 24, 2024
1 parent 122c196 commit 86a8047
Show file tree
Hide file tree
Showing 2 changed files with 180 additions and 44 deletions.
204 changes: 168 additions & 36 deletions R/license_network_plots.html

Large diffs are not rendered by default.

20 changes: 12 additions & 8 deletions R/license_network_plots.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ annual_graphs <- read_rds(here("Data", "network_graphs.rds"))
```

## Annual network plots
## Annual network plots

These plots include *all* data points, including years in which certain licenses may not have been issued

```{r}
Expand All @@ -39,32 +40,35 @@ These plots include *all* data points, including years in which certain licenses
#| column: page
#| fig-width: 6
#| fig-height: 6
#| fig-align: center
gridExtra::marrangeGrob(annual_graphs$ggraph_circular, layout_matrix = matrix(1:1, ncol = 1, nrow = 1, byrow= TRUE), top = NULL)
```

## Edge density
Below is the time series of network edge density.
## Edge density

Below is the time series of network edge density. The density of a graph is the ratio of the actual number of edges and the largest possible number of edges in the graph, assuming that no multi-edges are present. A network with higher density suggests more connections within the network. In the case of license networks, a more dense network would suggest more accesibility across fisheries and a less dense network would have less accessibility across fisheries.

```{r}
#| label: edge density
#| echo: false
#| message: false
#| warning: false
#| column: page
#| fig-width: 7
#| fig-height: 5
#| fig-width: 9
#| fig-height: 7
#| fig-align: center
annual_graphs %>%
select(license_year, density) %>%
mutate(density = as.numeric(density)) %>%
ggplot() +
geom_line(aes(x = license_year, y = density)) +
ggtitle("Edge density") +
theme_gmri(plot.title = element_text(size = 8),
axis.text = element_text(size = 6),
theme_gmri(plot.title = element_text(size = 10),
axis.text = element_text(size = 8),
axis.title = element_blank())
```

0 comments on commit 86a8047

Please sign in to comment.