This repo contains the data and code for my Shiny App, My Little Crony, visualizing links between Tory politicians and the private companies being awarded government contracts during the pandemic (even without a tender process).
Please feel free to contact me (sophie DOT eva DOT hill AT gmail DOT com) with any corrections, comments, or suggestions!
The raw data is contained in two files: people.csv
identifies individuals and organizations (i.e. the "nodes" of the network) and connections.csv
identifies the links between individuals and organizations (i.e. the "edges" of the network).
The script code.R
adds some attributes to the data to aid visualization, like specifying the icon type, colour, size. The data files are then resaved as people.RData
and connections.RData
.
The file app.R
contains the Shiny app. It can be run locally on your machine or you can see the final product here on the web!
Install R from https://cran.r-project.org/
local({r <- getOption("repos")
r["CRAN"] <- "https://cloud.r-project.org"
options(repos=r)
)
$ R
> install.packages("visNetwork")
> install.packages("tidyverse")
> install.packages("metathis")
> install.packages("shiny")
R -e "shiny::runApp('.')"