No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
sp_files Add files via upload Jun 13, 2017
www Add files via upload Jun 13, 2017
HACKATHON_RENTAL_ZONE_CALL_A_BIKE.csv Add files via upload Jun 13, 2017
HH_ALKIS_Landesgrenze.cpg Add files via upload Jun 13, 2017
HH_ALKIS_Landesgrenze.dbf Add files via upload Jun 13, 2017
HH_ALKIS_Landesgrenze.prj Add files via upload Jun 13, 2017
HH_ALKIS_Landesgrenze.shp
HH_ALKIS_Landesgrenze.shx
Kruse_poster-session.pdf Add files via upload Jul 10, 2017
README.md Update README.md Jul 31, 2017
bike_usage_HH.png Add files via upload Jul 10, 2017
joyplot_dayofweek-time.png Add files via upload Jul 28, 2017
joyplot_month-time.png Add files via upload Jul 28, 2017
joyplot_month-weekdays.png Add files via upload Jul 28, 2017
server.R Comment absolute path: setwd() Jul 8, 2017
stadtrad_processing.R Add files via upload Jun 13, 2017
style.css Add files via upload Jun 13, 2017
superheat.png Add files via upload Jul 27, 2017
superheat_processing.R Update superheat_processing.R Jul 27, 2017
ui.R Add files via upload Jun 13, 2017

README.md

Read an article on the usage of open data for bicycle traffic planning on my Medium.

Visualization of usage of bike sharing network in Hamburg (StadtRAD)

My interactive map shows the bike sharing usage of StadtRAD, the bike sharing system in Hamburg – Germany. The data is available on the open data platform from Deutsche Bahn, the public railway company in Germany. The last new StadtRAD station was put into operation in May 2016, that is why a have chosen to display the usage of June 2016. The brighter the lines, the more bikes have been cycled along that street.

alt text

From data processing and spatial analysis to visualization the whole project was done in R. I have used leaflet and shiny to display the data interactively. The bikes themselves don’t have GPS, so the routes are estimated on a shortest route basis using the awesome CycleStreets API. The biggest challenge has been the aggregation of overlapping routes. I found the overline function from the stplanr package very helpful. It converts a series of overlaying lines and aggregates their values for overlapping segments. The raw data file from Deutsche Bahn is quite huge so I struggled to import the data into R to process it. In the end the read.csv.sql function from the sqldf package did the job.

To further analyze the StadtRAD data I also took the full booking data from 2016 and did some diagrams. The first one is a calendar heatmap where you can see the amount of rented bikes aggregated on a daily basis. On the top of the graph you can see a barplot representing the rented bikes aggregated by the day of week. On the right you see a barplot to display the StadtRAD usage for each calendar week of 2016. The idea to use calendar heatmaps to display bike sharing usage comes from Via Velox. The code to create this heatmap is also in this Repo.

alt text

I also created joyplots with ggplot to display and analyze the data. The first one shows the daily usage of every weekday. You can see big differences between working days and the weekend.

alt text

The next diagram shows the daily usage per month. You can see that people renting bikes earlier in the summer.

alt text

The last diagram shows the differences between the months on a daily basis. You can see that people were not using StadtRAD a lot during chrismas.

alt text