Skip to content

A visualization of the connections between Tory politicians and companies being awarded government contracts during the pandemic.

License

Notifications You must be signed in to change notification settings

daniel-crowe/my-little-crony-grakn

 
 

Repository files navigation

My Little Crony - Grakn

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!

Data

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).

Code

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.

Shiny app

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!

Newbie

Update your ~/.Rprofile with:

local({r <- getOption("repos")
   r["CRAN"] <- "https://cloud.r-project.org"
   options(repos=r)
)

In the my-little-crony directory run (first time):

$ R 
> install.packages("visNetwork")
> install.packages("tidyverse")
> install.packages("metathis")
> install.packages("shiny")

Run the app:

R -e "shiny::runApp('.')"

About

A visualization of the connections between Tory politicians and companies being awarded government contracts during the pandemic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 99.8%
  • R 0.2%