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

Slicing by region

In this exercise, we will compare data visualization using a two-dimensional scatter plot grouped by a categorical variable to the visualization of the same data in a three-dimensional scatter plot.

The DataFrames and StatsPlots packages have been imported, and the insurance DataFrame has been loaded.

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

Introduction to Data Visualization with Julia

Kursa Göz Atın

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Grid of scatter plots
@df ____ scatter(
	:BMI,
    :Charges,
    group=:____,
    markersize=2,
    color=[:darkorange :dodgerblue4 :deepskyblue :deeppink],
    legend_position=:topleft,
    layout=(____, ____),
)
xlabel!("BMI")
ylabel!("Premium (USD)")
Kodu Düzenle ve Çalıştır