string_line: Plot a recreation of E.J. Marey's graphical train schedule...

Description Usage Arguments Details Value Examples

Description

Stations are plotted vertically according to their relative distance. This means the slope of each line corresponds to the speed of the train.

Usage

1
string_line(route = "glq_edb_via_fkk")

Arguments

route

String. The name of a csv file (without extension) in the extdata directory

Details

This plot requires two data tables: a timetable and the distances between stations. This can potentially lead to redundancy (repetition of stations) so the demonstration datasets store these two tables in a special format as csv files. The timetable is organised with a row for each journey and a column for each station. Relative distances are stored in the headers. This function parses this dataset and then plots a stringline chart.

Value

A plot object. A stringline chart.

Examples

1
2
string_line()
string_line("london_edinburgh_test")

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