Skip to content

Instantly share code, notes, and snippets.

View jakeybob's full-sized avatar
🤦‍♂️
ARGH

Bob Taylor jakeybob

🤦‍♂️
ARGH
View GitHub Profile
@jakeybob
jakeybob / openair_pollution.R
Last active April 13, 2019 16:51
OpenAir Pollution Animation
library(openair)
library(tidyverse)
library(lubridate)
library(gganimate)
jhn <- as_tibble(importSAQN(site = "REN02", year = 2017:2019, pollutant = "all")) %>%
mutate(day = date(date))
# saveRDS(jhn, "jhn.rds")
# jhn <- readRDS("jhn.rds")
@jakeybob
jakeybob / spectrogram_video.R
Created March 16, 2019 13:24
R script for creating spectrogram videos from .wav files
library(seewave)
library(ggplot2)
library(scales)
library(foreach)
library(doParallel)
registerDoParallel(parallel::detectCores())
#### SETUP ####
file_wav <- "firestarter16.wav"
pic_dir <- "pics"