Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BobHarper1
BobHarper1 / README.md
Last active February 10, 2016 15:52
Treemap summary of Invest NI financial support to local companies, categorised by sector

Data from Invest NI under the Open Government Licence 3.0

Information on an additional £28million of offers to 1,789 locally-owned companies was withheld by Invest NI. Please note that this dataset is not a full representation of all Invest NI support as it excludes sole traders (this data could not be released due to data protection), businesses that have availed of non-financial support, and externally-owned businesses.

Visit http://data.nicva.org/dataset/invest-ni-assistance-local-businesses for more information

Disclaimer: There are no allegations of wrongdoing against Invest NI or against any business that received support or any other party.

Thanks Mike Bostock for the example code

@BobHarper1
BobHarper1 / .block
Last active March 28, 2017 13:34
Rail and Road Disruptions Calendar
license: gpl-3.0
border: no
@BobHarper1
BobHarper1 / collisions_by_date.csv
Last active November 25, 2016 15:26
Calendar of collisions occurring within 100m of schools on weekdays, 2005-2014
date number
2005-01-04 1
2005-01-11 1
2005-01-12 1
2005-01-18 1
2005-01-21 1
2005-01-27 1
2005-02-02 1
2005-02-02 1
2005-02-03 1
@BobHarper1
BobHarper1 / .block
Last active July 21, 2016 15:45 — forked from mbostock/.block
Northern Ireland Population Projection
license: gpl-3.0
@BobHarper1
BobHarper1 / README.md
Last active March 29, 2017 16:22
UK Distribution of Gross Hourly Earnings 1999-2016

This diagram shows the earnings distribution in the UK from 1997 to 2016. Source: ONS Annual Survey of Hours and Earnings (ASHE). For more analysis see the ONS's excellent article.

The left axis is the percentage of employees (or density). The measure is gross hourly earnings. ASHE does not cover the self-employed.

Use the arrow keys to observe the changing distibution through the years.

Adapted from D3's Mike Bostock (original version).

@BobHarper1
BobHarper1 / index.html
Last active October 18, 2018 12:47
Fermanagh Community Transport trips made on a weekday in October 2016. See http://data.nicva.org/article/stormont-threat-lifeline-rural-communities for more context
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Fermanagh Community Transport</title>
<link rel='stylesheet prefetch' href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.26.0/mapbox-gl.css'>
<link rel="stylesheet" href="style.css">
@BobHarper1
BobHarper1 / hourlyheatmap.R
Last active January 26, 2021 15:37
Hourly heatmaps for visualisation of air quality data
## created after John Mackintosh's guide here http://johnmackintosh.com/2016-12-01-the-hourly-heatmap/. Thanks John!
library(ggplot2)
library(dplyr) # data wrangling
library(viridis) # colour blind friendly palettes, see https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html
library(lubridate) # for easy date manipulation
library(ggExtra)
library(tidyr)
library(readr)
@BobHarper1
BobHarper1 / hashtags.md
Last active February 13, 2017 16:37
#AE17 hashtags. Others welcome in comments

In addition to #AE17

Constituencies

  • #BelfastEast
  • #BelfastNorth
  • #BelfastWest
  • #BelfastSouth
  • #EastAntrim
  • #EastLondonderry
  • #EastDerry
@BobHarper1
BobHarper1 / .block
Last active March 2, 2017 15:59
Comparing electorate numbers between #AE17 and #AE16
license: cc-by-4.0
height: 550