Skip to content

Instantly share code, notes, and snippets.

View jobonaf's full-sized avatar

Giovanni Bonafè jobonaf

  • ARPA FVG (environmental protection agency)
  • Palmanova, Italy
View GitHub Profile
@jebyrnes
jebyrnes / had_crut_spider_plot.R
Created May 13, 2016 18:40
R code to reproduce the awesome visualization of global temperature change from Ed Hawkins at http://www.climate-lab-book.ac.uk/2016/spiralling-global-temperatures/ using R and ggplot2 (with the animations package)
library(dplyr)
library(tidyr)
library(ggplot2)
library(animation)
#Data from https://crudata.uea.ac.uk/cru/data/temperature/
#As well as data read in script
source("read_cru_hemi.R")
temp_dat <- read_cru_hemi("./HadCRUT4-gl.dat")
#remove cover
@noerw
noerw / GeoTIFF_leafletwidget_generator.r
Last active May 17, 2016 07:42
R script to visualize GeoTIFFs in a Leaflet Map. Generates an HTML file containing this map
# dependencies on fedora23:
# gdal-devel geos-devel proj-devel proj-nad proj-epsg
library(htmlwidgets)
library(raster)
library(leaflet)
# PATHS TO INPUT / OUTPUT FILES
projectPath = "/home/kreis/git/geotiff/"
#imgPath = paste(projectPath,"data/cea.tif", sep = "")