Session Ready
Exercise

Adding Points Layer to Maps

In the previous exercise you created ny_map to the show the central area of New York. In this exercise you will map the station locations to points according to the long/lat coordinates.

Mapping the number of trips starting at each station to the color attribute will help you spot the ones with the highest traffic on a certain day.

Note that:

  • rbokeh and dplyr are pre-loaded.
  • ny_map object is available from the previous exercise.
  • ny_bikedata dataset is available in this session.
Instructions
100 XP
  • Filter ny_bikedata to get the data corresponding to day "2017-04-25", which is a weekday.
  • Add a points layer on top of ny_map, mapping the station coordinates to the x and y arguments.
  • Set the point size to 8, fill color to the number of trips starting at the station, start_count, and make the line color transparent.
  • Include station_name, start_count, end_count in the hover info.