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

Mosaic plots

In this exercise, you will use mosaicplot() to visualize proportions between sex, adult and agecat categorical variables. In the resulting plots notice that the age categories split above and below the age 10.5 years, do not split evenly between infants, males and females (defined by sex variable) or adults (defined by adult variable).

The abaloneKeep dataset has been loaded for you.

Bu egzersiz

R For SAS Users

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Make mosaicplot of sex by agecat
mosaicplot(___ ~ ___, data = ___,
           color = c(___, ___),
           main = ___)
Kodu Düzenle ve Çalıştır