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

What's in a number?

Turn your attention to the variable called number. Read more about it by pulling up the help file with ?email.

To explore the association between this variable and spam, select and construct an informative plot. For illustrating relationships between categorical variables, you've seen

  • Faceted bar charts
  • Side-by-side bar charts
  • Stacked and normalized bar charts.

Let's practice constructing a faceted bar chart.

Bu egzersiz, kursun bir parçasıdır

Exploratory Data Analysis in R

Kursa Göz Atın

Egzersiz talimatları

  • Reorder the levels of number so that they preserve the natural ordering of "none", then "small", then "big", saving to a number_reordered column.
  • Construct a faceted bar chart of the association between number and spam.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Reorder levels
email$number_reordered <- ___

# Construct plot of number_reordered
___(email, ___
  ___
  ___
Kodu Düzenle ve Çalıştır