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

A simple boxplot

Let's get started by simply making a boxplot similar to the ones we made in the slides.

Modify the filter() to look at 'RED' cars instead of blue and then map the x-axis to gender and the y-axis to driver speed. Add your boxplot geometry and give it a title.

Bu egzersiz

Visualization Best Practices in R

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

Egzersiz talimatları

  • Modify filter() command to filter to 'RED' vehicles.
  • Fill in aes() by mapping x to gender and y to speed.
  • Add a boxplot geometry to the plot.
  • Title plot 'Speed of red cars by gender of driver'.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

md_speeding %>% 
    filter(vehicle_color == 'BLUE') %>%
    # Map x and y to gender and speed columns respectively
    ggplot(aes(___)) + 
    # add a boxplot geometry
    ___ +
    # give plot supplied title
    labs(title = '___')
Kodu Düzenle ve Çalıştır