Here is a fun post about using colour palettes in R. It starts with a computer game… After a few years of sporadically playing Super Mario World 2 – Yoshi’s Island on the Retropie, I made it to the final level. In the background, as Bowser approached, I noticed that those coloured bars in the […]
Category: fun
Running Free: Calculating Efficiency Factor in R
Joe Friel reposted an article earlier this year on Efficiency Factor in running. Efficiency Factor (EF) can be viewed in Training Peaks software and he describes how it is calculated. This post describes how I went about calculating EF in R using a single gpx file. What is Efficiency Factor (EF)? Essentially, EF is the […]
Say It Ain’t So: using Weezer album cover colours in R
I’m a long-term fan of Weezer. Such was the brilliance of their first two albums that I have stuck with them through thick and thin. And dear me, there has been some very thin music. Nonetheless I own every album – thirteen of them. Among them are six albums entitled “Weezer”. These records are colloquially […]
Walk This Way
Over the holidays, I had an idea about looping an animation between two images. I wrote some code to do this in Igor Pro (sorry, no R this time…). This post describes how the code works and how you can make a similar animation. There was a reason to do this animation, but as a […]
Calendar: Assessing Raspberry Pi Camera Uptime
A while ago, I set up a couple of Raspberry Pi Zero cameras to make long-term time lapse movies. To recap: the idea was to take pictures every ten minutes and turn them into a movie. The process is totally automated so that every day, the photos from each Pi get saved to a server, […]
Tips From The Blog XII: Improving your Twitter experience
This is a quick set of tips to improve your Twitter experience. YMMV on these tips. Plus I can see Twitter changing things so that they no longer work, but this advice is correct as of today. I see a lot of people on Twitter complaining about two things: These things seem to plague Twitter […]
Rollercoaster IV: ups and downs of Google Scholar citations
Time for an update to a previous post. For the past few years, I have been using an automated process to track citations to my lab’s work on Google Scholar (details of how to set this up are at the end of this post). Due to the nature of how Google Scholar tracks citations, it […]
Turn A Square: generative aRt
A while back I visited Artistes & Robots in Paris. Part of the exhibition was on the origins of computer-based art. Nowadays this is referred to as generative art, where computers generate artwork according to rules specified by the programmer. I wanted to emulate some of the early generative artwork I saw there, using R. Some […]
Timestretched: audio stretching on the command line
I was recently reminded of the wonders of paulstretch by a 8-fold slowed down version of Pyramid Song by Radiohead. Paulstretch is an audio manipulation widget that can stretch or compress the time of an audio recording. Note that it doesn’t “slow down” or “speed up” a recording, it resamples the audio and recasts it […]
All Around The World: Maps and Flags in R
Our lab is international. People born all over the world have come to work in my group. I’m proud of this fact, especially in the current political climate. I’ve previously used the GoogleMaps API to display a heat map on our lab webpage. It shows where in the world people in the lab come from. […]