Skip to content

Instantly share code, notes, and snippets.

View mtjhrsk's full-sized avatar

Matej Hruska mtjhrsk

View GitHub Profile
library(tidyverse)
library(sf)
#https://www.cultureofinsight.com/blog/2018/05/02/2018-04-08-multivariate-dot-density-maps-in-r-with-sf-ggplot2/
svk.dot <- st_read("shp/hranice_obce_3.shp", stringsAsFactors = FALSE, quiet = TRUE) %>%
st_transform(4326)
colnames(svk.dot)[1] <- "id"
source target value
Agricultural Energy Use Carbon Dioxide 1.4
Agriculture Agriculture Soils 5.2
Agriculture Livestock and Manure 5.4
Agriculture Other Agriculture 1.7
Agriculture Rice Cultivation 1.5
Agriculture Soils Nitrous Oxide 5.2
Air Carbon Dioxide 1.7
Aluminium Non-Ferrous Metals Carbon Dioxide 1
Aluminium Non-Ferrous Metals HFCs - PFCs 0.2
@tnightingale
tnightingale / LICENSE.txt
Last active October 25, 2019 16:50
Christchurch 2010 Timeline
The MIT License (MIT)
Copyright (c) 2014 Tom Nightingale
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@WillTurman
WillTurman / Readme.md
Created January 25, 2013 02:15
D3 Interactive Streamgraph

D3 Streamgraph Example

Series Hover

The series hover interactivity uses the technique from lgrammel seen here: http://bl.ocks.org/1963983

Data Tooltip

It isn't necessarily a tooltip, but data is displayed by inverting the x-axis value into a date, and mapping the date to the corresponding data value for the series.

@d3noob
d3noob / .block
Last active November 30, 2019 18:24
New Zealand Earthquakes
license: mit