Our Logo In R

Hi all, so given our logo here at Jumping Rivers is a set of lines designed to look like a Gaussian Process, we thought it would be a neat idea to recreate this image in R. To do so we’re going to need a couple packages. We do the usual install.packages() dance (remember this step can be performed in parallel)

install.packages(c("ggplot2", "ggalt", "readr"))

We’re also going to need the data containing the points for the lines and which set of points belongs to which line. There is a Gist available to download via Jumping Rivers. To read in the CSV file we’re going to use the raw data link.

The function geom_xspline() is the X-spline version of geom_line(), drawing a curve relative to the observations. The parameterspline_shape = -0.3 controls the shape of the spline relative to the observations. This can be a number between -1 & 1. Basically, -1 = bumpy lines, 1 = flat lines.