ISSS608 Visual Analytics & Applications Coursework
by Wilson Tan
  • Hands-on Exercises
    • Week 1: Hands-on Exercise
    • Week 2: Hands-on Exercise
    • Week 3: Hands-on Exercise
    • Week 4: Hands-on Exercise
  • In-class Exercises
    • Week 1: In-class Exercise
    • Week 2: In-class Exercise
    • Week 3: In-class Exercise
    • Week 4: In-class Exercise
    • Week 5: In-class Exercise
    • Week 6: In-class Exercise
    • Week 7: In-class Exercise
  • Take-home Exercises
    • Take-home Exercise 01
    • Take-home Exercise 02
    • Take-home Exercise 03

Week 5: In-class Exercise

pacman::p_load(jsonlite, tidygraph, ggraph, visNetwork, tidyverse)
MC1 <- fromJSON("data/data_05/MC1.json")
MC1_nodes <- as_tibble(MC1$nodes) %>%
  select(id, type, country)
Mc1_edges <- as_tibble(MC1$links) %>%
  select(source, target, type, weight, key)