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

Reordering a variable by its frequency

Making effective visualizations is a big part of analyzing data. It's not about having all the information on the plot; how you display the information can change whether or how quickly someone can understand the message. One of the primary purposes of the forcats package is to make it easy to quickly change your visualizations when you're working with qualitative variables.

Let's make a chart of how many people are employed in each industry. We'll do two versions so you can judge which one is better. multiple_choice_responses has been loaded for you.

Bu egzersiz

Categorical Data in the Tidyverse

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Make a bar plot
___(___, aes(x = EmployerIndustry)) + 
    ___() + 
    # Flip the coordinates
    ___
Kodu Düzenle ve Çalıştır