BaşlayınÜcretsiz Başlayın

Re-examining the RailTrail data

In your previous work, you observed that rail-trail volume tends to be lower on a weekday than a weekend. Some of the variability in volume might also be explained by outside temperature. For example, we might expect trail volume to increase on warm, pleasant days.

The RailTrail data set in your workspace includes hightemp, the observed high temperature (F) for each of the 90 days in the study period. You will use these data to explore the associations between trail volume, weekday status, and hightemp

Bu egzersiz

Bayesian Modeling with RJAGS

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

Construct a scatterplot of volume by hightemp:

  • Use color to distinguish between weekdays & weekends.
  • Use geom_smooth() to highlight the linear relationship between the observed volume & hightemp values.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Construct a plot of volume by hightemp & weekday
ggplot(___, aes(y = ___, x = ___, color = ___)) + 
    ___() + 
	geom_smooth(method = "lm", se = FALSE)
Kodu Düzenle ve Çalıştır