Using JointGrid and jointplot

Visualisasi Data Lanjutan dengan Seaborn

Chris Moffitt

Instructor

JointGrid() Overview

JointGrid Overview

Visualisasi Data Lanjutan dengan Seaborn

Basic JointGrid

g = sns.JointGrid(data=df, x="Tuition", y="ADM_RATE_ALL") 
g.plot(sns.regplot, sns.histplot)

JointGrid Example

Visualisasi Data Lanjutan dengan Seaborn

Advanced JointGrid

g = sns.JointGrid(data=df, x="Tuition", y="ADM_RATE_ALL") 
g = g.plot_joint(sns.kdeplot)
g = g.plot_marginals(sns.kdeplot, shade=True)

JointGrid example annotated

Visualisasi Data Lanjutan dengan Seaborn

jointplot()

sns.jointplot(data=df, x="Tuition", y="ADM_RATE_ALL", kind='hex')

jointplot example

Visualisasi Data Lanjutan dengan Seaborn

Customizing a jointplot

g = (sns.jointplot(x="Tuition",
                   y="ADM_RATE_ALL",
                   kind="scatter",
                   xlim=(0, 25000),
                   data=df.query('UG < 2500 &
                   Ownership == "Public"'))
    .plot_joint(sns.kdeplot))
Visualisasi Data Lanjutan dengan Seaborn

Customizing a jointplot

jointplot

Visualisasi Data Lanjutan dengan Seaborn

Let's practice!

Visualisasi Data Lanjutan dengan Seaborn

Preparing Video For Download...