Description Usage Arguments Details Value Examples
Stations are plotted vertically according to their relative distance. This means the slope of each line corresponds to the speed of the train.
1 | string_line(route = "glq_edb_via_fkk")
|
route |
String. The name of a csv file (without extension) in the extdata directory |
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.
A plot object. A stringline chart.
1 2 | string_line()
string_line("london_edinburgh_test")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.