Skip to content

Instantly share code, notes, and snippets.

View sinarueeger's full-sized avatar

Sina Rüeger sinarueeger

View GitHub Profile
@sinarueeger
sinarueeger / bitmap.R
Created August 19, 2018 20:39 — forked from emitanaka/bitmap.R
Making the Rladies Sydney Bitmap Animation
library(readbitmap)
library(gganimate)
library(dplyr)
library(ggplot2)
b1 <- read.bitmap("~/Documents/rladies.png")
b2 <- read.bitmap("~/Documents/sydney.png")
x1 <- 1 - b1[,,1]
x2 <- 1 - b2[,,1]
# plot(raster::raster(x1)) # check
# plot(raster::raster(x2)) # check