Train diagram is vital in terms of railway transport. It can be used to check out the safety, efficiency of railway operation. This R code shows how to download the data from the PTX, which is the open data website of public transport information in Taiwan. It is essential to note that we should apply for the members of PTX, amd get the API ID and API key to access the data directly. This code mainly use the package sf, lwgeom, maptools and nngeo to conduct basic geocomputation. Use package dplyr and data.table to tidy the data. Last but not least, use package ggplot and plotly to produce the graph.
ChiaJung-Yeh/Train-Diagram
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This R code shows how to plot train diagram mainly by using package sf, lwgeom, dplyr and ggplot.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published