MulaiMulai sekarang secara gratis

Flipper distribution

Histograms are a great way to inspect a distribution of numerical variables by counting the occurrences of observations in bins. However, one needs to know how to read and plot them properly. Important information may become lost if you have too few or too many bins in your plot.

In this exercise, you'll look at the distribution of flipper lengths among penguins from the penguins dataset. Let's plot a histogram, play with the number of bins, and maybe you'll learn something new!

The penguins dataset and the DataFrames and Plots packages have been loaded for you.

Latihan ini adalah bagian dari kursus

Data Manipulation in Julia

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Make a histogram of flipper lengths with 5 bins
histogram(____.____, bins = 5)
Edit dan Jalankan Kode