RailTrail sample data
The RailTrail data frame from the mosaic package is loaded in your workspace. RailTrail contains data collected by the Pioneer Valley Planning Commission on the usage of a local rail-trail. For each of 90 days, they recorded the rail-trail volume (number of users) and whether it was a weekday (TRUE if yes and FALSE otherwise). You will explore the trends in weekday vs weekend volume below.
Deze oefening maakt deel uit van de cursus
Bayesian Modeling with RJAGS
Oefeninstructies
- Confirm that
weekdayis recorded as afactorvariable. - Construct density plots of weekday
volumeand weekendvolumeon the same frame.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# Confirm that weekday is a factor variable
class(___)
# Construct a density plot of volume by weekday
ggplot(___, aes(x = ___, fill = ___)) +
___(alpha = 0.5)