Plotting with R and ggplot2

One of the hurdles I faced when learning how to plot with the ggplot2 package for R was figuring out how to arrange the data in a data.frame before passing it to the plotting function. I created this little app using Shiny to have a record of various common chart types, what commands to use […]

Read more "Plotting with R and ggplot2"

Complex Functions (2)

In a previous post I explored complex functions from the perspective of domain coloring. I used the paradigm I found on Wikipedia, which is to assign a color to each point in the complex plane based on it’s phase, and a shading based on it’s modulus. Now I want to mix it up a bit; […]

Read more "Complex Functions (2)"

IQ Blocks (2)

After several years of on-and-off toying with IQ Blocks, I had finally figured out how many solutions there were (see here). My new question was “How many pieces can be placed before it is not always possible to reach a successful outcome?” I assumed that for every way to place the first three or even […]

Read more "IQ Blocks (2)"

Conformal Mapping

In a previous post I explored complex functions through domain coloring. Here I would like to explore another element of complex functions – conformal mapping. The idea here is to consider some curve in the complex plane, and apply a function to it, and see what happens. The panel on the left represents the complex […]

Read more "Conformal Mapping"

First Steps into Data Scraping

There is historical weather data available for download on a  Government of Canada website. One click will provide you with a CSV file containing one years worth of daily data from one monitoring station. I want many years worth of data. What if I want the data from several stations? This could get very tedious… […]

Read more "First Steps into Data Scraping"

IQ Blocks

IQ blocks is a puzzle, where you have to fit these little plastic pieces into a square frame.   Two years ago my (then) four year old son discovered that there is more than one way to arrange the pieces in the frame, which led me to ask “How many ways are there”? I decided […]

Read more "IQ Blocks"

First Data Project

Looks like I’ve caught the data bug, so I thought I’d try a small project. I was playing around on LinkedIn and stumbled across some interesting data that they have about university alumni, such as current location, major and current employer. I had found my first project… What are the top employment destinations for those […]

Read more "First Data Project"

Newton’s Method Fractals

Newton’s Method is a popular and simple way to approximate solutions for systems of equations. You start by taking a guess as to what the solution might be, and then you pop that guess into a formula, and pop the result of that back into the formula, and again …, until you have the desired […]

Read more "Newton’s Method Fractals"