# excel file
roundabout <- read_excel("../00_data/Raw data Roundabout.xlsx")
roundabout
## # A tibble: 27,887 × 18
## name address town_city county_area state_region country lat long type
## <chr> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl> <chr>
## 1 Arapah… Boulde… Boulder Boulder Co. CO United… -105. 40.0 Traf…
## 2 Arapah… Boulde… Boulder Boulder Co. CO United… -105. 40.0 Traf…
## 3 10th A… Belmar… Belmar Monmouth C… NJ United… -74.0 40.2 Traf…
## 4 10th A… Belmar… Belmar Monmouth C… NJ United… -74.0 40.2 Traf…
## 5 Bagley… Seattl… Seattle King Co. WA United… -122. 47.7 Traf…
## 6 8th Av… Seattl… Seattle King Co. WA United… -122. 47.7 Traf…
## 7 8th Av… Seattl… Seattle King Co. WA United… -122. 47.7 Traf…
## 8 8th Av… Seattl… Seattle King Co. WA United… -122. 47.7 Traf…
## 9 Kendal… Madiso… Madison Dane Co. WI United… -89.4 43.1 Traf…
## 10 Bagley… Seattl… Seattle King Co. WA United… -122. 47.7 Traf…
## # ℹ 27,877 more rows
## # ℹ 9 more variables: status <chr>, year_completed <dbl>, approaches <dbl>,
## # driveways <dbl>, lane_type <chr>, functional_class <chr>,
## # control_type <chr>, other_control_type <chr>, previous_control_type <chr>
How many approaches does a roundabout typically have?
ggplot(roundabout[roundabout$approaches > 0, ], aes(x = approaches)) +
geom_bar()
The bar chart clearly points towards strong evidence that the average number of approaches to a roundabout is 4. This bar chart is very visually friendly for this set of data and shows the correlation between the amount of roundabouts to number of approaches very effectivly.