Posts

Snowflakes (generative)

Load packages library(plotrix) library(gsl) library(RColorBrewer) library(data.table) Set the background of the graphics device to black and generate a vector of colours. par(bg = "black") colours <- brewer.pal(10, "Set3") Make necessary functions A regular polygon of n sides By default, this function draws the polygon and returns a data.

Updates to Animapp

In 2019, we published a paper about Animapp, which is a piece of software we developed to aid in the analysis of movement in small animals. I am pleased to say that I have finally updated the software to make installation and use much easier.

Making a personal (academic) website using Blogdown

Here, I used instructions from 2 different sources, 1) the blogdown website and 2) the documentation for the Hugo Academic theme. First install the Blogdown package in R: library(blogdown) Navigate to the directory where your website files will reside on your computer,

Petitions in the UK Parliament

Are all petitions with at least 100,000 signatures debated in the UK parliament? In case you haven’t heard, there is a petition to withdraw the invitation for a state visit that Theresa May extended to Donald Trump.

The Birthday Problem

What is it? The Birthday Problem describes the probability of a pair of individuals sharing the same birthday, in a sample of n individuals. In our group of 75 students in med school, 2 or 3 pairs of us shared the exact same birthday (day and month).