Which is which?

Report a typo

Seaborn allows you to add a third variable to scatterplot in several ways: by altering the color, size, or shape of the dots. Below you have four code snippets and four plots all focusing on bill_length_mm and flipper_length_mm from the penguins dataset. Can you match all plots to their code?

Plot A

Customized scatterplot: set the hue parameter to species

Plot B

Customized scatterplot: set the hue parameter to sex

Plot C

Customized scatterplot: set the style parameter to species

Plot D

Custom scatterplot: set the hue and style parameters

Match the items from left and right columns
Plot A
Plot B
Plot C
Plot D
sb.scatterplot(x='bill_length_mm', y='flipper_length_mm', style='sex', data=penguins)
sb.scatterplot(x='bill_length_mm', y='flipper_length_mm', hue='sex', data=penguins)
sb.scatterplot(x='bill_length_mm', y='flipper_length_mm', hue='species', style='species', data=penguins)
sb.scatterplot(x='bill_length_mm', y='flipper_length_mm', hue='species', data=penguins)
___

Create a free account to access the full topic