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

Grouping variables

We'll continue with the previous exercise by considering the situation of looking at sub-groups in our dataset. For this we'll encounter the invisible group aesthetic.

mtcars has been given an extra column, fcyl, that is the cyl column converted to a proper factor variable.

Bu egzersiz

Intermediate Data Visualization with ggplot2

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Using mtcars, plot mpg vs. wt, colored by fcyl
___ +
  # Add a point layer
  ___ +
  # Add a smooth lin reg stat, no ribbon
  ___
Kodu Düzenle ve Çalıştır