Utilizarea JointGrid și jointplot

Vizualizarea datelor cu Seaborn – nivel intermediar

Chris Moffitt

Instructor

Prezentare generală JointGrid()

Prezentare generală JointGrid

Vizualizarea datelor cu Seaborn – nivel intermediar

JointGrid de bază

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

Exemplu JointGrid

Vizualizarea datelor cu Seaborn – nivel intermediar

JointGrid avansat

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)

Exemplu JointGrid adnotat

Vizualizarea datelor cu Seaborn – nivel intermediar

jointplot()

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

Exemplu jointplot

Vizualizarea datelor cu Seaborn – nivel intermediar

Personalizarea unui 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))
Vizualizarea datelor cu Seaborn – nivel intermediar

Personalizarea unui jointplot

jointplot

Vizualizarea datelor cu Seaborn – nivel intermediar

Să exersăm!

Vizualizarea datelor cu Seaborn – nivel intermediar

Preparing Video For Download...