Number of daily rides
Make a summary plot of the number of daily rides with workweek / weekend days colored differently.
Questo esercizio fa parte del corso
Visualizing Big Data with Trelliscope in R
Istruzioni dell'esercizio
- Create a dataset of daily counts using
group_by()andsummarise(). Group bystart_dayand be sure to include the variableweekdayas well. - Plot the result, using points to plot the number of rides on the y-axis and the start day on the x-axis. Color the points by weekday.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
library(dplyr)
library(ggplot2)
# Compute daily counts
daily <- bike %>%
___ %>%
summarise(n = ___)
# Plot the result
ggplot(daily, aes(___, ___, color = ___)) +
___