Skip to content

Instantly share code, notes, and snippets.

View pmagtulis's full-sized avatar

Prinz Magtulis pmagtulis

View GitHub Profile
@pmagtulis
pmagtulis / daily_temp_anomaly_chart
Created July 10, 2023 18:26 — forked from digitalcampbell/daily_temp_anomaly_chart
Pull global temperature data from Climate Reanalyzer and create a daily temperature anomaly chart
library(tidyverse)
library(jsonlite)
library(splitstackshape)
library(RColorBrewer)
# pull daily temperature from https://climatereanalyzer.org/clim/t2_daily/
temp_json <- fromJSON("https://climatereanalyzer.org/clim/t2_daily/json/cfsr_world_t2_day.json")
# create dataframe
temp <- as.data.frame(temp_json) %>%