Introductie tot datavisualisatie met Seaborn
Content Team
DataCamp
Toon de relatie tussen twee kwantitatieve variabelen
We zagen:
col en row)hue)Nieuwe aanpassingen:
Te gebruiken met zowel scatterplot() als relplot()
import seaborn as sns import matplotlib.pyplot as plt sns.relplot(x="total_bill", y="tip", data=tips, kind="scatter", size="size")plt.show()

import seaborn as sns import matplotlib.pyplot as plt sns.relplot(x="total_bill", y="tip", data=tips, kind="scatter", size="size", hue="size")plt.show()

import seaborn as sns import matplotlib.pyplot as plt sns.relplot(x="total_bill", y="tip", data=tips, kind="scatter", hue="smoker", style="smoker")plt.show()

import seaborn as sns import matplotlib.pyplot as plt # Stel alpha in tussen 0 en 1 sns.relplot(x="total_bill", y="tip", data=tips, kind="scatter", alpha=0.4)plt.show()

Introductie tot datavisualisatie met Seaborn