knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

stringliner

Use stringliner to plot a recreation of E.J. Marey's graphical train schedule (aka a stringline chart). See a D3 version here.

Example

Currently this function only plots data saved in the extdata directory. Plot the Monday to Friday route between Edinburgh and Glasgow like this (correct until 9th December 2017):

library(tidyverse)
library(lubridate)
library(stringliner)

string_line()

Installation

Install stringliner from GitHub like this:

# install.packages("devtools")
devtools::install_github("jsphdms/stringliner")


jsphdms/stringliner documentation built on May 29, 2019, 1:50 a.m.