We have thus
# Load necessary packages
library(readxl)
library(tidyverse)
library(openxlsx)
library(igraph)
# Set Working Directory
setwd("C:/Users/heblj/OneDrive/Career/Professional_Portfolio/Network_Analysis/MigrationAmericas_NetworkAnalysis/Immigration_Networks")
### Load the graphs ----
load("Constructing_Networks/g_1990.R")
load("Constructing_Networks/g_2000.R")
load("Constructing_Networks/g_2010.R")
load("Constructing_Networks/g_2020.R")
# Defined the preferred layout to use in subsequent networks
layout_preferred <- layout_with_fr(g_1990)
### Graph based on Degree ----
### Degree Total ----
plot(g_1990,
main = "Migration 1990",
sub = "Vertex size by Degree",
layout = layout_preferred,
edge.arrow.size = 0.5,
vertex.size = V(g_1990)$DegT^1.5,
vertex.color = V(g_1990)$DegT,
vertex.label.font = 2,
vertex.label = V(g_1990)$code)
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this: