Skip to content

Commit

Permalink
vig/stats19.Rmd fails due to changes in ggplot perhaps: nothing to do…
Browse files Browse the repository at this point in the history
… with #235
  • Loading branch information
layik committed Jul 27, 2024
1 parent fbcc832 commit 8c82ba9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vignettes/stats19.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ crashes_types = cj %>%
passenger > 0 ~ "Passenger",
TRUE ~ "Other"
))
crashes_types$speed_limit = as.integer(crashes_types$speed_limit)
table(crashes_types$speed_limit)
ggplot(crashes_types, aes(size = Total, colour = speed_limit)) +
geom_sf(show.legend = "point", alpha = 0.3) +
Expand All @@ -507,6 +508,7 @@ This can be done with **tidyvers** functions follows:

```{r ggplot-ped-severity, fig.height=5, fig.width=6}
table(cj$light_conditions)
cj$speed_limit = as.integer(cj$speed_limit)
cj %>%
filter(walking > 0) %>%
mutate(light = case_when(
Expand Down

0 comments on commit 8c82ba9

Please sign in to comment.