1
0
mirror of https://github.com/gsi-upm/sitc synced 2024-11-16 19:42:28 +00:00
sitc/ml21/visualization/03_Distribution_Charts.ipynb

1236 lines
1.1 MiB
Plaintext
Raw Normal View History

2024-04-03 20:53:02 +00:00
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "skip"
}
},
"source": [
"![](images/EscUpmPolit_p.gif \"UPM\")"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "skip"
}
},
"source": [
"# Course Notes for Learning Intelligent Systems"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "skip"
}
},
"source": [
"Department of Telematic Engineering Systems, Universidad Politécnica de Madrid, © Carlos A. Iglesias"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "skip"
}
},
"source": [
"## [Introduction to Visualization](00_Intro_Visualization.ipynb)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"# Distribution charts\n",
"Charts for visualizing the distribution of a dataset."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Plotting Univariate variables\n",
"**display** Draw a histogram and fit a kernel density estimate (KDE)."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAeoAAAHpCAYAAABN+X+UAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAABHj0lEQVR4nO3deXhb5YE2/PtotWRL8iLve/bF2UhCQgIhUAikQAm0tJQCyQzlpW1IS7m6fAxtCTPvNFOYAp2ytPRtA21JoXSA0rKEAFkhgWxO4sTZHDtyvMuLZMnadb4/ZJuYrLYlPUfS/bsuXW1sR7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fB4PAAil7wfeOAB/PznP8frr7+OmpoarFixAkajEXfccYfI6JREwmEZGw93AACmFJpRGodNTUZDkiT8x7IqXDYmB25/CPe8sAvtvV7RsYgoRoQW9XPPPQeHw4HFixejsLBw8PHKK68Mfs2PfvQjPPDAA/jOd76DOXPmoKmpCe+99x5MJpPA5JRM9jc50OHyQa9RYeG4HNFxLopOo8Jzd16CMdZ0NPV4cO8fuXsZUbISfun7bI8VK1YMfo0kSVi9ejVaWlrg9XqxefPmwVnhRKPV5w8O7j62cKwVRp0yZnlfjEyjDr9fMReZRi32Nfbgh3/bz2VbRElIuTfiiOLgkxNd8AfDyDXpMbU48SYeVlrT8Zs7Z0OjkvCPfc14dlOd6EhEFGUsakpZnS4fDjRHJpAtGm+FKorHVsbT/DE
"text/plain": [
"<Figure size 500x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"import seaborn as sns\n",
"import matplotlib.pyplot as plt\n",
"from scipy import stats\n",
"\n",
"x = np.random.normal(size=100)\n",
"sns.displot(x, kde=True);"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAeoAAAHpCAYAAABN+X+UAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAgfElEQVR4nO3df2xVhf3/8deFwqWFttCV/kDaUhVBxOlUPji+DqnTDpYRK87MEQxkapwCjhHjgsxRXEYTN5FEFOcSq2Zj+o8/SDRiFSgaxACTIaQYmGVl0K5cftzblsst7T3fP0zvWnpb6OX2nvdtn4/kRu455577vucWnt4fvdfjOI4jAABg0hC3BwAAAD0j1AAAGEaoAQAwjFADAGAYoQYAwDBCDQCAYYQaAADDBnyoHcdRI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yPhAIEGsAQNIyHeoL5efnq6ioSIcOHepxG6/XK6/Xm8CpAADoP6af+r7QyZMndfToUeXn57s9CgAACeHqI+rm5mYdPnw4cr62tlZ79+5VVlaWsrKyVF5ernvvvVf5+fk6cuSInnrqKWVnZ+uee+5xcWoAABLH1VDv3r1bJSUlkfMdry0vXLhQGzZs0FdffaU33nhDZ86cUX5+vkpKSvTWW28pPT3drZEBAEgoV0M9a9YsOY7T4/rNmzcncBoAAOxJqteoAQAYbAg1AACGEWoAAAwj1AAAGEaoAQAwjFADAGBYTKG+8sordfLkyW7Lz5w5oyuvvPKyhwIAAN+KKdRHjhxRe3t7t+WhUEjHjh277KEAAMC3+vSBJ5s2bYr8efPmzcrMzIycb29v1ye
"text/plain": [
"<Figure size 500x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Only the histogram and a rug plot (the observations)\n",
"sns.displot(x, kde=False, rug=True);"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAeoAAAHpCAYAAABN+X+UAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAABJnUlEQVR4nO3dd3zb9YE//tdHW7LlKVveK3vvkKSMhEIgtDlCKC2laUMLlLYhlOPX9o7jWtK77zWPLuCurM4AVwK0PWaZaSaQBLIcx8GJncTx3kN76/P7Q7axEzvxkPT5SHo9Hw892kiy9LIU9MpHn/cQRFEUQURERLKkkDoAERERjYxFTUREJGMsaiIiIhljURMREckYi5qIiEjGWNREREQyxqImIiKSsbgvalEUYbVaweniREQUi+K+qG02G1JTU2Gz2aSOQkRENGZxX9RERESxjEVNREQkYyxqIiIiGWNRExERyRiLmoiISMZY1ERERDLGoiYiIpIxFjUREZGMs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VVRWVuLOO++EwWDAHXfcIWV0iiN1XQ6c6huc9fkZ5rCs3x1pJaYk/GHjYujUCuw+3YEfv14JUeRGHkTxSNKifvrpp2GxWLBy5Urk5uYOXF5++eWB+/zoRz/CAw88gO9973tYvHgxmpqa8P7778NoNEqYnOKFPxDE7tOhqVjzC9OQk6KTONHoLSxKx//cvgAKAXjxkwY8ufuM1JGIKAIk3Y96NEcAgiBgy5Yt2LJlS+QDUcI5Wt8Li8uHJK0
"text/plain": [
"<Figure size 500x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Only the KDE and the rug plot\n",
"sns.displot(x, kde=True, rug=True);"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<Axes: ylabel='Density'>"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkAAAAGdCAYAAAD60sxaAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAABVn0lEQVR4nO3deXhU5aE/8O8syUyWmck+SchKFkIIBAhbAqgoRnEDbCu3/QnaSpVWLUi9VYpapQt6r1rUAspVoWhFUERQQYiKLBJZQhYgrCFkQjKTlWSykJlk5vz+oMaGsGR/Z/l+nmeex5ycnHxnDJlvzvue98gkSZJARERE5EbkogMQERERDTQWICIiInI7LEBERETkdliAiIiIyO2wABEREZHbYQEiIiIit8MCRERERG6HBYiIiIjcjlJ0AEdkt9tRXl4OjUYDmUwmOg4RERF1gSRJaGhoQHh4OOTya5/jYQG6gvLyckRGRoqOQURERD1QWlqKiIiIa+7DAnQFGo0GwKUXUKvVCk5DREREXWE2mxEZGdn+Pn4tLEBX8MOwl1arZQEiIiJyMl2ZvsJJ0ERE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xCRg2IBInITXx4xodVmR0acaxcgALhzeBjSBwfi9xvycaqiQXQcInJALEBEbuKT3DKkDNIhwMdTdJR+d2k+0GAEa1R4aM1BVDdaREciIgfDAkTkBirNLdh/tgbpcYGiowwYtYcCT2YmoqGlDQ/98yAuWnm/MCL6EQsQkRv44ogRCrkMY2MCREcZUMEaNf77tiE4YWzglWFE1AELEJEb2JJfjtQIP/iqlKK
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# We can use a shortcut: kdeplot if we want only kdeplot\n",
"sns.kdeplot(x, fill=True) #check fill=False\n",
"#sns.rugplot(x)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Plotting Bivariate distributions\n",
"The most common chart is the **scatterplot**, where each observation is shown with a point at the x and y values.\n",
"\n",
"This is analogous to a rug plot in two dimensions. You can draw a **scatterplot** with **lmplot())** and **jointplot()**.\n",
"\n",
"It helps us to discover **correlations** (positive if the values of both variables increase or decrease together; or negative if one increases when the other decreases)."
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>total_bill</th>\n",
" <th>tip</th>\n",
" <th>sex</th>\n",
" <th>smoker</th>\n",
" <th>day</th>\n",
" <th>time</th>\n",
" <th>size</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>16.99</td>\n",
" <td>1.01</td>\n",
" <td>Female</td>\n",
" <td>No</td>\n",
" <td>Sun</td>\n",
" <td>Dinner</td>\n",
" <td>2</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>10.34</td>\n",
" <td>1.66</td>\n",
" <td>Male</td>\n",
" <td>No</td>\n",
" <td>Sun</td>\n",
" <td>Dinner</td>\n",
" <td>3</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>21.01</td>\n",
" <td>3.50</td>\n",
" <td>Male</td>\n",
" <td>No</td>\n",
" <td>Sun</td>\n",
" <td>Dinner</td>\n",
" <td>3</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>23.68</td>\n",
" <td>3.31</td>\n",
" <td>Male</td>\n",
" <td>No</td>\n",
" <td>Sun</td>\n",
" <td>Dinner</td>\n",
" <td>2</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>24.59</td>\n",
" <td>3.61</td>\n",
" <td>Female</td>\n",
" <td>No</td>\n",
" <td>Sun</td>\n",
" <td>Dinner</td>\n",
" <td>4</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>25.29</td>\n",
" <td>4.71</td>\n",
" <td>Male</td>\n",
" <td>No</td>\n",
" <td>Sun</td>\n",
" <td>Dinner</td>\n",
" <td>4</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>8.77</td>\n",
" <td>2.00</td>\n",
" <td>Male</td>\n",
" <td>No</td>\n",
" <td>Sun</td>\n",
" <td>Dinner</td>\n",
" <td>2</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>26.88</td>\n",
" <td>3.12</td>\n",
" <td>Male</td>\n",
" <td>No</td>\n",
" <td>Sun</td>\n",
" <td>Dinner</td>\n",
" <td>4</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>15.04</td>\n",
" <td>1.96</td>\n",
" <td>Male</td>\n",
" <td>No</td>\n",
" <td>Sun</td>\n",
" <td>Dinner</td>\n",
" <td>2</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>14.78</td>\n",
" <td>3.23</td>\n",
" <td>Male</td>\n",
" <td>No</td>\n",
" <td>Sun</td>\n",
" <td>Dinner</td>\n",
" <td>2</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" total_bill tip sex smoker day time size\n",
"0 16.99 1.01 Female No Sun Dinner 2\n",
"1 10.34 1.66 Male No Sun Dinner 3\n",
"2 21.01 3.50 Male No Sun Dinner 3\n",
"3 23.68 3.31 Male No Sun Dinner 2\n",
"4 24.59 3.61 Female No Sun Dinner 4\n",
"5 25.29 4.71 Male No Sun Dinner 4\n",
"6 8.77 2.00 Male No Sun Dinner 2\n",
"7 26.88 3.12 Male No Sun Dinner 4\n",
"8 15.04 1.96 Male No Sun Dinner 2\n",
"9 14.78 3.23 Male No Sun Dinner 2"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df = sns.load_dataset('tips')\n",
"df.head(10)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"**lmplot** shows us a scatterplot of variables x and y, fit a regression model (y ~ x), and plots the resulting regression line and a 95% confidence interval for that regression. \n",
"\n",
"An alternative is **regplot** (only for one relationship and enables detailed configuration of the axes)."
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.FacetGrid at 0x7f9179351660>"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAekAAAHpCAYAAACmzsSXAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAACLFU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IYQQ4lAUpAkhhBCHoiBNCCGEOBQFaUIIIcShKEgTQgghDuXoYiaEEEIKsyyBfX0RjCY01Ptc2NgWBOes0s0i84yCNCGEVJld3cPYvrMHPYMx6KaAIjF0Nvtx3bZObF3bWOnmkXlEw92EEFJFdnUP45YdXdjfH0GNW0ZzwI0at4z9/VHcsqMLu7qHK91EMo8oSBNCSJWwLIHtO3sQUw20BD3wKBI4Z/AoElqCbsRUE9t39sCyFnUhySWFgjQhhFSJfX0R9AzGUOdzgbH8+WfGGGp9CnoGY9jXF6lQC8l8oyBNCCFVYjShQTcFXFLhr263xKFbAqMJbYFbRsqFgjQhhFSJep8LisSgmVbB+1XTgsIZ6n3F7RJInI+CNCGEVImNbUF0NvsxltAxeQNDIQTGEzo6m/3Y2EY7/i0WFKQJIaRKcM5w3bZO+N0SBiIqkroJyxJI6iYGIir8bgnXbeuk9dKLCAVpQgipIlvXNuLW92/C+tYAEqqBwZiKhGpgfWsAt75/E62TXmSYmDxmsshEIhGEQiGEw2EEgzQERAhZHKji2NJAFccIIaQKcc6waUWo0s0gZUbD3YQQQohDUZAmhBBCHIqCNCGEEOJQFKQJIYQQh6IgTQghhDgUBWlCCCHEoShIE0IIIQ5FQZoQQghxKArShBB
"text/plain": [
"<Figure size 500x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# 2 variables\n",
"sns.lmplot(x=\"total_bill\", y=\"tip\", data=df)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"We can observe a positive correlation and a few outliers.\n"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.FacetGrid at 0x7f91793f26e0>"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkkAAAHpCAYAAACWdKhHAAAA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nPtN329e//nV+8Ytf8MorrwzpMRKJBJWVlcTjcWKx2FgNVQghhBBTTFnPJGUyGXS9eIiGYUgJACGEEEKMubLOSTrnnHP4xje+wdy5c1m2bBnPP/883/nOd7j44osnemhCCCGEmOLKerktmUzyla98hXvuuYfW1lZmzpzJ+eefz1e/+lX8fv+QHkOW24QQQggxEmUdJI0GCZKEEEIIMRJlnZMkhBBCCDFRJEgSQgghhChBgiQhhBBCiBIkSBJCCCGEKEGCJCGEEEKIEiRIEkIIIYQooayLSQohhNjLdRUb9yTozBSoCftZNjOGrmsTPSwhpiwJkoQQYhJYt6WdNWsbaWxNYTkK09BYVB/l0tWLWLW4bqKHJ8SUJMttQghR5tZtaefqezawqSlBJOCjviJAJOBjU1OSq+/ZwLot7RM9RCGmJAmShBCijLmuYs3aRlJ5m4ZYkKBpoOsaQdOgIRYglXdYs7YR153SzROEmBASJAkhRBnbuCdBY2uK6rAfTSvOP9I0jaqwSWNrio17EhM0QiGmLgmShBCijHVmCliOwm+U/nUdMHQsV9GZKYzzyISY+iRIEkKIMlYT9mMaGgXHLXk877iYukZN2D/OIxNi6pMgSQghytiymTEW1UfpylgoVZx3pJSiO2OxqD7KspmxCRqhEFOXBElCCFHGdF3j0tWLiAYMmhN5spaD6yqylkNzIk80YHDp6kVSL0mIMSBBkhBClLl
"text/plain": [
"<Figure size 600.25x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#Even 3 variables\n",
"sns.lmplot(x=\"total_bill\", y=\"tip\", hue=\"sex\", data=df)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.FacetGrid at 0x7f9179278df0>"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjEAAAHpCAYAAABz6m0rAAAAOXRFWHRTb2Z0d2FyZQBNY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Bn883qvuQ4yQhhBBiesrrIGYiSBAjhBBCTE95nRMjhBBCCDESCWKEEEIIUZAkiBFCCCFEQZIgRgghhBAFSYIYIYQQ05NS+kNMWxLECCGEmH5cF0IHwXVyvRIxifK62Z0QQogRuC40vwzRDghWQ8MqMOV9KQCODb0HwU7meiVikkkQI4QQhWbvJnjidmjfBW4KTC/ULIazr4EFa3K9utyyE7IDcwyRsF0IIQrJ3k1w/xehpQl8xVBSr/9sadKX792U6xXmTjICPQckgDmGSBAjhBCFwnX1DkwiDKUzwFsEhqn/LJ2hL3/idn27Y028B3qbJZH3GCNBjBBCFIrml/URUlElGEbmdYahL2/fpW93LIl0QLhNAphjkAQxQghRKKIdOgfG489+vcevr492TO26ckUpvfsS68r1SkSOSBAjhBCFIlitk3jtRPbr7YS+Plg9tevKBdfR+S+JcK5XInJIghghhCgUDat0FVKsa/jRiVL68prF+nbTmZ2Env0jB3PimCFBjBBCFArT1GXU/hLoPQSpGChX/9l7CPyl+vrp3C8mGdUBjGPneiUiD0zjn3QhhJiGFqyBS+6A+kZdUhxu0X/WN8Ilt0/vPjHxHh2sSQKvSJNmd0IIUWgWrIH55xxbHXsj7RDrzvUqRJ6RIEYIIQqRacLMk3K
"text/plain": [
"<Figure size 572.125x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.lmplot(x=\"total_bill\", y=\"tip\", hue=\"smoker\", data=df)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"A more straightforward function for relating variables with scatter plots is **relplot**.\n",
"\n",
"**relplot** can also be used for continuous variables."
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.FacetGrid at 0x7f9179139270>"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjEAA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Z89KiA4lQYwQQkSayh3w+fVQtFJ9bjDDcXfDmKshJqVz5yZEB5LtJCGEiCSWInjn7MYABsBthx8fgU1fQfcuwi5EAAlihBAikpRvBkth6LEFj4GtuGPnI0QnkiBGCCEiScmv4cdqS8Ht6Li5CNHJJIgRQohIktIv/FhUgiT3iiOKBDFCCBFJskZBVGLosWNugtjMjpyNEJ1KghghhIgkCTlw9VcQ1yRY0Whg5GUw7lrQyaFTceTQ+P3dO5XdarWSkJCAxWIhPj6+s6cjhBCHz+9XCby2Eqi3QmIOxKSp7SQhjiASsgshRKTRaCA+W30IcQST7SQhhBBCRCQJYoQQQggRkSSIEUIIIUREkiBGCCGEEBFJghghhBBCRCQJYoQQQggRkSSIEUIIIUREkiBGCCGEEBFJghghhBBCRCQJYoQQQggRkSSIEUIIIUREkiBGCCGEEBFJghghhBBCRCQJYoQQQggRkSSIEUIIIUREkiBGCCGEEBFJghghhBBCRCQJYoQQQggRkSSIEUIIIUREkiBGCCGEEBFJghghhBBCRCQJYoQQQggRkSSIEUIIIUREkiBGCCGEEBFJghghhBBCRCQJYoQQQggRkSSIEUIIIURE0nf2BIQQQog2VVMIRStg9xJI7Q/9T4aEHqAzdvbMRBuTIEYIIZryeqC2BOrK1ecxaRCbCTr55zIiVGyHt06H2tLGa3OMcMWnkDtJ/hy7GfnTFEKI/Vx1sGM+fHkz1Neoa1G
"text/plain": [
"<Figure size 572.125x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.relplot(x=\"total_bill\", y=\"tip\", hue=\"smoker\", data=df)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.FacetGrid at 0x7f91791a3970>"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkoAAAHqCAYAAAD712HqAAAAOXRFWHR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HpcogQUkIIYQQZ6tW1ygJIYQQQtQkCUpCCCGEED5IUBJCCCGE8EGCkhBCCCGEDxKUhBBCCCF8kKAkhBBCCOGDBCUhhBBCCB8kKAkhRF3gtENBRsltjwcKMtW/QogqI0FJCCFqO6cdjq2G6YMh94gKRxm74YsrIH2nhCUhqpAEJSGEqO3s+TDrVsjYA18NhcP/wrSrIfsgfH87WLJqeoRCnLckKAkhRG3nFwqj5oDeqMLRjGvBmgOBUXDLTAiKrukRCnHekqAkhBC1nd4A9bvBla97H7/5a4hpVTNjEuICIUFJCCFqO48HsvbDkpOC0q/3q5olIUSVkaAkhBC1nSVL1SQVLbcN/l/JMtx3I9TVb0KIKiFBSQghaju9P1z9tqpFGrcIut4Oo38FYygMfg/8Q2t6hEKctzQez/l9XanJZCIsLIy8vDxCQ+WHiRCijrKZwWmFoBh12+kAuwmMIaDzq9mxCXEe09f0AIQQQpwBY7B6K6I3gD6q5sYjxAVClt6EEEIIIXyQoCSEEEII4YMEJSGEEEIIHyQoCSGEEEL4IEFJCCGEEMIHCUpCCCGEED5IUBJCCCGE8EGCkhBCCCGEDxKUhBBCCCF8kKAkhBBCCOGDBCUhhBBCCB8kKAkhhBBC+CBBSQghhBDCBwlKQgghhBA+SFASQgghhPBBgpIQQgghhA8SlIQQQgghfJCgJIQQQgjhgwQlIYQQQggfJCgJIYQQQvggQUkIIYQQwgcJSkIIIYQQPkhQEkIIIYTwQYK
"text/plain": [
"<Figure size 601x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# We can even show four variables\n",
"sns.relplot(x=\"total_bill\", y=\"tip\", hue=\"smoker\", style=\"time\", data=df)"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAeoAAAHqCAYAAADLbQ06AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjgu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dWpCyFEUqMmkEdOTI1VXAYVOJqIUvsBxCCdoPzUhJIkCNZk0IroJizkQ81yffmFfP9bd/Tzu++c+2M74BWxVEhBMmHDG8TEJIeWLAjWZNAbjBiQ+/7f8n17tQsK08ciWQ/jWH7cjqo3PdLRLEpAwLMSpQQchBBSoySRhWA5CcRNuOb8W7FHdwquHQgCSpT03dwRx3W+2onMgXsrLTD6eyMOwGeK0Tk0IAQVqMklEdQsJw8l7ffql/QOwHYb2Oje+e8lJaPQpOBzScN1vtuHFfQMlvlqAAxDWaJ2aEEKBmkwSMd2CzRgEPr+tWZv29AMAVs+qx6xGL2754DIsbvMjYdr47z+9gd+83FnSRDNVEjAYNyckmY0QUl4oUJNJYSBmQBXze7vrlo3NHYMAkoEaAGrcMv7rwiU4f0kLGIBfPH8A331iJ7QSrSO7JAFx3YJmUuETQiY7CtSk6mmmjVDCzLu+95aOIHTLQaNPwexGT/p2SeDxyXPn4JPnzobAc3h2Vx++9Mir6IloRb9mReShWw5iBq1TEzLZUaAmVS+qW9BMG2qe69Ob9h6d9uZGqWJ2/pJW/PeFS+BXReztjeHa/9uG7YdDRb1mjuPAqEEHIQQUqMkkENVMMDDweZQOtWwHLw0li60amvYezZIpAfzg0pMxq8GDUMLEVx97HX95vbto1wwAiiBgIEYNOgiZ7ChQk6rGGEN/zIAq5rc
"text/plain": [
"<Figure size 500x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Continuous variables\n",
"fmri = sns.load_dataset(\"fmri\")\n",
"sns.relplot(x=\"timepoint\", y=\"signal\", kind=\"line\", data=fmri);"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"**joinplot** draws a scatterplot showing each observation with a point at the x and y values. It is like a rug plot for two variables.\n"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.JointGrid at 0x7f9179208640>"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkkAAAJOCAYAAACjhZOMAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAABbzElEQVR4nO3de3yU9Z33//fkMEkmIRPIGAg1gWhSiByDqJUE1Fr7e2h1q/XXbmm9V0jv3e2teCgP9/bQemqtaHfXqtDDz26ldr2Ld1uKst12t7a2nOxawFhAUQkFQhc0TiQzOU8O8/sjzjSTueaYOVwz83o+Hjw0c7iuz1wJXO98jxav1+sVAAAAAuSluwAAAAAzIiQBAAAYICQBAAAYICQBAAAYICQBAAAYICQBAAAYICQBAAAYICQBAAAYICQBAAAYICQBAAAYICQBAAAYICQBAAAYKEh3AchtHR0dcjqdKTufw+FQbW1tys4HAMhchCSkTUdHh+bPb9TAQH/KzllSYtObbx4mKAEAIiIkIW2cTqcGBvp1Uev9Kq+em/TzuU8f1ytPPyin00lIAgBEREhC2pVXz9WM2nnpLgMAgACEJARI5Rihw4cPp+Q8AADEg5AEv3SMEZKk4SFPSs8HAEA0CEnwS/UYodMHf69D25/SyMhI0s8FAECsCEkIkqoxQu7Tx5N+DgAA4sVikgAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAAAaY3Yack8pFLNlQFwAyFyEJOWPA1SXJohtuuCFl52RDXQDIXIQk5Izh/h5JXi393J06q25+0s/HhroAkNkIScg5ZVW1bKgLAIiIgdsAAAAGCEkAAAAGCEkAAAAGCEkAAAAGCEkAAAAGCEkAAAAGCEkAAAAGCEkAAAAGCEkAAAAGWHEbSDI21AWAzERIApKEDXUBILMRkoAkYUNdAMhshCQgydhQFwAyEwO3AQAADBCSAAAADBCSAAAADBCSAAAADBCSAAAADBCSAAAADBCSAAAADBCSAAAADBCSAAAADBCSAAAADL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7f/1sDAwO66aabdObMGV100UX61a9+pWnTpqWrZAAA/Ow2QlE2M806ScnCmhEAgFzhu+dJ0v79+7Vs2bI0V5TZTDsmCQAAIJ0ISQAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAAAYISQAAZKGhoaF0l5DxCEkAAGShoqKidJeQ8QhJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABgrSXQAAAKni6vfI2euRe3BY5SWFcpRaZbdZ010WTIqQBADICae6B3Tn1gPadcTpf2xVg0OPXL9YsytK0lgZzIruNgBA1nP1e4ICkiTtPOLUXVsPyNXvSVNlMDNCEgAg6zl7PUEByWfnEaecvYQkBCMkAQCynntwOOzzPRGezzRFRcVyOBzpLiPjEZIAAFmvvLgw7PPTIjyfaf71X3+o2tradJeR8QhJAICs5yizalWDccvKqgaHHGXZNcNt5syZ6S4hKxCSAABZz26z6pHrFwcFpVUNDj16/WKWAYAhlgAAAOSE2RUl2ri6Sc5ej3oGhzWtuFCOMtZJQmiEJABAzrDbCEWIHt1tAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABghJAAAABgh
"text/plain": [
"<Figure size 600x600 with 3 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.jointplot(x=\"total_bill\", y=\"tip\", data=df)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"The default value for kind is \"scatter\". If we modify this parameter, we have different charts.\n"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.JointGrid at 0x7f91790d6560>"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkkAAAJOCAYAAACjhZOMAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAC/60lEQVR4nOzdeXxcV33//9e9d/bRjFZrsyUvsh0rju3si7M4QBLK/qULbUIgJBRCoC00LaWk5duWtsk3QFP4AQ17CHuhEAqFQEJJnBAncfY4thxb8iLL1r7Mvtzt98dIskYa2ZI10iz6PB8PJ/ZIM3M0Wu5b53zO5yi2bdsIIYQQQogsaqEHIIQQQghRjCQkCSGEEELkICFJCCGEECIHCUlCCCGEEDlISBJCCCGEyEFCkhBCCCFEDhKShBBCCCFykJAkhBBCCJGDhCQhhBBCiBwkJAkhhBBC5CAhSQghhBAiBwlJQgghhBA5OAo9ALG8dXd3MzQ0tGTPV1dXR2tr65I9nxBCiNIlIUkUTHd3N5va20nE40v2nF6fj/0dHRKUhBBCnJaEJFEwQ0NDJOJx3vmxT9PQ2rboz9ff3cV37/4oQ0NDEpKEEEKcloQkUXANrW2s2rC50MMQQgghskhIElmWskaoo6NjSZ5HCCGEOBMSksSkQtQIAUSj0dO+j2XbjMbSDERShJM60aRBNGUQS5kYloVlg23b2IDboeJxanidGj6XRpXPRa3fRdpc/I9FCCFE+ZCQJCYtdY1Qx+6dPHj/50gmkzPeZlo2J8YSHBmO0RdKMhBJYVj2nB43MutbXKz6s2/zqV2jvCl1hMva6mhb4UdRlDP+GIQQQpQvCUlihqWqEerv7sr6t25adA1GOTQY4+hwnLRpZb3dqSmsCLip9rmocDuocDvwux04NQVVyfwBSBkmCd0kqVtEUwajsTTDsTShRBrNX81TPUme6tkLQGPQw+s3N/Dmbc1c0FqNqkpgEkIIkSEhSRRcxHLy2/0DvNoXyQpGXqfGmjofLd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ekIBUJFZWe3nHhat44zmNVHmdJHWLJzqHue+JIzzfPYphWoUeohBClC0JSctc50CUP/rSkxwZjrPCp9H/3Y9R6ZIt6MVEURQ2NAR416Wrue7sBiq9ThK6yeMHh7hv1xFePDYmYUkIIRaBLLctY68cD/Hub+xmJJZmfX0FH7vYx3X/0FvoYYlZqKpCe1OQjQ0BOvrC7D48QiRpsPPAILsPj7DOp6K45ZBhIYTIF5lJWqZ2Hx7h+q88xUgszZaVlfzw1suo9Z1m+5QoCpqqcE5zJTddtobXnLWCgMdBQjfZG3Kw6rZv8O2XwwyEk4UephBClDwJScvQI68O8O5vPE0kZXDx2hq+975LqPHPv3GhKCxNVdi6qoqbLlvD689uIOi0UN1+Htgf44pPPcLHf7JHzoUTQogFkJC0zPzi5V7e/61nSeoWr91Uz7duuZiAx1noYYkF0FSFTU1Brmk0GPivf+KsWidpw+L7u7u55p7HeNfXn+a3+/vluBMhhJgnqUlaRv7zmW4+/pM9WDa8ZVsz97xjm2wjLyOKAomuZ7jrdXUY1Wv42uOHeLijn8cPDvH4wSHW1Pp492Vr+KMLV0kwFkKIOZCQtEx87fFD/MsvMmeIXX9xK//yf85Bk3PYytbFa2u4eG0Nx0bifOvJI/zgmWMcGY7zyf/Zx7899CpvPbeZ6y9uZcvKSjluRgghZiEhqczZts2/P3yA/++3nQDcetU6/vYNm+TCuEy01Pj4uzedzUeu2cgDLxznm7uO0DkQ5fu7j/H93cc4uynI9Ze08rZzmwnK7JIQQmSRkFTGLMvmk/+zj2/uOgLAR19/Fh+8uk0CUpnr6OjIefvZLrh7RwX7Bl08dCjOUz1J9vW
"text/plain": [
"<Figure size 600x600 with 3 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Add regression and kernel density fits\n",
"sns.jointplot(x=\"total_bill\", y=\"tip\", data=df, kind=\"reg\")"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"We can group individual samples into hexagons with kind=\"hex\" for large datasets. \n",
"\n",
"This chart is called **hexagonal bin plot** or simply **hexbin plot**.\n",
"\n",
"It uses a lighter or darker color to represent the density of data."
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.JointGrid at 0x7f91792569b0>"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkkAAAJOCAYAAACjhZOMAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAByX0lEQVR4nO3deXxcZ30u8Oc962yakaXRZluyncRJnB1nIyGQsDcQCuV2A3IbCKWlWZo0FwptgUBLE+DeCwnQQkPL1hRSlgK5bYGEzSwJwQ4kcRIvWWzLi2xZljX7cpb3/jGasWwfSaPROZpFz/fz8SfRSHPOe86ZOe9z3t9ZhJRSgoiIiIiOozS7AUREREStiCGJiIiIyANDEhEREZEHhiQiIiIiDwxJRERERB4YkoiIiIg8MCQREREReWBIIiIiIvLAkERERETkgSGJiIiIyANDEhEREZEHhiQiIiIiD1qzG0DL2+joKCYmJpZsfslkEiMjI0s2PyIial8MSdQ0o6OjOPPMDSgU8ks2z3A4gu3btzEoERHRvBiSqGkmJiZQKORx6fW3Iz60NvD5pcd245HPfwgTExMMSURENC+GJGq6+NBa9Iyc0exmEBERHYchiY6zlOcIbdu2bUnmQ0RE1AiGJKppxjlCAGCVyks6PyIionowJFHNUp8jNLb1YTx5/z2wbTvweRERES0UQxKdZKnOEUqP7Q58HkRERI3izSSJiIiIPDAkEREREXlgSCIiIiLywJBERERE5IEhiYiIiMgDr26jZWcpb2LJB+oSEbUvhiRaNgqpIwAErr322iWbJx+oS0TUvhiSaNmw8hkAEhe8+T3oW3dm4PPjA3WJiNobQxItO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b/7qr/4KqVSq9o9pmoiIOtVsfV6xWMDExESTW9f+WvaxJIODgwAqI0pDQ0O118fHx08aXZrJNE2Yphl4+4iIiJqNfV6wWnYkad26dRgcHMSDDz5Ye61cLmPTpk24/PLLm9gyIiIiWg6aOpKUzWbx7LPP1n7etWsXHnvsMfT09GBkZAS33nor7rjjDqxfvx7r16/HHXfcgUgkgje/+c1NbDUREREtB00NSVu2bMFLX/rS2s+33XYbAOC6667DF7/4RfzlX/4lCoUCbrjhBhw9ehSXXnopHnjgAXR1dTWryURERLRMCNnhjyFOp9NIJBJIpVKIx+PNbg4REbW4ybyNkgME3TkORFWoyuwXIjWi2ucBwKOPPoqNGzf6Ov3lpmVP3CYiImqGFWEVEkCm5CJnBReV5rhQm1oEQxIREdEMQggIAHFTQUQHUiUXZce/sKQpQHdIhcKU1PIYkoiIiDwIIaApEsmIirzlIl1y4S4iKx0LXmLO+/1R62BIIiIimkU1zIQ1gZCmNlyCC2sCcVPx/RwkChZDEhER0TyEEICUM0pwDsrO/O+rltYMleGoHTEkERER1aE6qlQpwWlzluBYWusMDElEREQLMF8JjqW1zsGQRERE1ICZJThTlUiXXZbWOgxDEhERUYOqo0qmBvRpKktrHYYhiYiIaJEYjjqT0uwGEBEREbUihiQiIiIiDwxJRERERB4YkoiIiIg8MCQREREReWBIIiIi6kClUqnZTWh7DElEREQdyDTNZjeh7TEkEREREXlgSCIiIiLywJBERERE5IEhiYiIiMgDQxIREXU0KWWzm0BtiiGJiIg6HoMSNYIhiYiIOpKUElJKZMsuyo6svUZUL63ZDSAiIvKTlBJCCBRtiVTJhSsBQCKkSSRMBQoqvyeaD0MSERF1DCklHAlMFZza6FFV0ZYo2Q5ihoKYUXmNYYnmwpBERERtr1pGy5RdZMuzl9Tk9N8UbCBhKjA1URt5Ijo
"text/plain": [
"<Figure size 600x600 with 3 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.jointplot(x=\"total_bill\", y=\"tip\", data=df, kind=\"hex\")"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"We can also show a **contour plot**. KDE plot replaces the scatterplots and histograms with density estimates.\n",
"\n",
"Contour plots or 2d density plots show the density of points, much as a topographic map shows elevation. "
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.JointGrid at 0x7f917962f0a0>"
]
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkkAAAJOCAYAAACjhZOMAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAD7kUlEQVR4nOzdd1iTVxvH8W8S9t4yBEFFce+trVbbaq1222lbu/fee/ft3nva2tpql7W1Vq17L0RFARGQvUdY2c/7RzDVCooQTID7c11ctiEhB8Q8v5xzn/uoFEVREEIIIYQQR1E7egBCCCGEEM5IQpIQQgghRCMkJAkhhBBCNEJCkhBCCCFEIyQkCSGEEEI0QkKSEEIIIUQjJCQJIYQQQjRCQpIQQgghRCMkJAkhhBBCNEJCkhBCCCFEIyQkCSGEEEI0wsXRAxDCmSiKQpFWT0ZpDYVVOqp1JvQmMx6uGnzcXYgM8KRbsBfhfh6oVCpHD1cIIUQbkpAkOr2yGj1/Jxex7kAJWzPLKas1nPAxIT7uDI0JYGLvMCb3CaOLn8cpGKkQQohTSaUoiuLoQQhxqlksCqvTivlm0yHWHSjFbPn3n4FGrSI60JOugV74ebrg7qJBbzKjrTeRV1lPTnkdpiPur1LBuB4hzBoRzdR+4bi5yCq2EEJ0BBKSRKdisSgs3p3PO/8cIKOk1nb7gCh/zurbhdE9ghkQ5Y+Hq6bJr6EzmtmbV8XmjDJW7C9mV06l7XMR/h5cPz6OK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zNedxXeOp4scXNtp1RvMLE0uYMG2XDZllNluD/ByZVr/CM4bHMnI2CBZjhNCOC0JScIuFEXhvgVJ/JqYh7ebhgW3jJGmg8LmUFktP+3IZeH
"text/plain": [
"<Figure size 600x600 with 3 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.jointplot(x=\"total_bill\", y=\"tip\", data=df, kind=\"kde\")"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Pairwise relationships of the dataset\n",
"We can plot multiple pairwise bivariate distributions in a dataset with **pairplot**."
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAuUAAALlCAYAAABjOpj+AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAADo2klEQVR4nOzde3zT9b0/8FeaNLe2SUtCC9UWqqlyLdShONKi4nQ6RUTOdgbuHKBucz8EdJ4dUfGCiiDOOQeoZzq57Gyws42BiptXFChOJ1JHQcAWOi5yKS1t0jS35vL7oyQkzb1N+v2meT0fDx5b802++TT2+/2+8/m+P++3xOv1ekFERERERILJEnoARERERESZjkE5EREREZHAGJQTEREREQmMQTkRERERkcAYlBMRERERCYxBORERERGRwBiUExEREREJjEE5EREREZHABnxQ7vV6YTabwR5JROLCY5NInHhsEgljwAflHR0d0Gq16OjoEHooRBSAxyaROPHYJBLGgA/KiYiIiIjEjkE5EREREZHAGJQTEREREQmMQTkRERERkcAYlBMRERERCUwm9ACIiIgoPJPViRaLE2Z7FzSqbOhz5NCq5UIPi3qB/y0pFgblREREInSy3YZFm/ZiZ0OL/7HJ5Xo8M6MCxfkqAUdGieJ/S4oH01eIiIhExmR1hgRxALCjoQUPbtoLk9Up0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6+qDH5s6dixEjRmDRokW45JJLMGTIELz33nv+oNzpdGL79u1YsWJFxP0qFAo
"text/plain": [
"<Figure size 750x750 with 12 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.pairplot(df);"
]
},
{
"cell_type": "code",
"execution_count": 52,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmIAAAIVCAYAAABycZOfAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOzdd3hb1fnA8e/VXpbkvffKcPaAEAgJm7D3KruFDjppKd10/Fra0kVboFAKFFpK2ZQ9AyGMkL2d5b23pjXv74/rOHHkJJZiWbZzPs/jJ9G17tFJfC2994z3lWRZRhAEQRAEQRh7qkR3QBAEQRAE4VglAjFBEARBEIQEEYGYIAiCIAhCgohATBAEQRAEIUFEICYIgiAIgpAgIhATBEEQBEFIkAkTiJ111lkyIL7EVzy/Dktcg+JrDL4OS1yD4msMvoQxNmECsc7OzkR3QTjGiWtQSDRxDQrC5DNhAjFBEARBEITJRgRigiAIh+HsD1Df5abP6090V4QBXS4f9V0evP5QorsiCEdNk+gOCIIgjFebG/u4639bWVvXw4xcKz+7oIo5BcmJ7tYxKxSWWbmrgx+9uIXGHi+nT83ku2dNoTTDkuiuCULMxIiYIAjCMNoc/dz6+BrW1vUAsLnJwU2PfkZjjyfBPTt2Vbc6+Pxja2jo9iLL8Oa2Nn7+yjY8/mCiuyYIMYt7ICZJUq0kSZslSdogSdKagWMpkiS9JUnSroE/xS2mIAjjSkO3h+a+/iHHejwB6rpEIJYoezrdBMNDN/atqO6g9aCfkyBMJGM1IrZMluXZsizPH3h8J/COLMvlwDsDj485vR4/t/17HQt+8Tbf/u9G3D5xVycI40WSQYNGJUUctxm1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"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"sns.pairplot(df, hue='sex');"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.PairGrid at 0x7f9172a3f880>"
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA08AAALlCAYAAAAczt0mAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOzdd3hUVfrA8e/0kplJ740Qei/SqwWxYcGOvbtYV3d1V1d/6Lq6uru2tXcsiILdtWBFpfdeQwgJIb1M7/P7YyAQMhMgQibA+3mePGvOmdw5yXLv3Peec95XEQqFQgghhBBCCCGEaJUy1gMQQgghhBBCiKOBBE9CCCGEEEIIcRAkeBJCCCGEEEKIgyDBkxBCCCGEEEIcBAmehBBCCCGEEOIgSPAkhBBCCCGEEAdBgichhBBCCCGEOAgSPAkhhBBCCCHEQTjmg6dQKITVakVqAQvRcch5KUTHI+elEEIc2DEfPNlsNuLj47HZbLEeihBiNzkvheh45LwUQogDO+aDJyGEEEIIIYQ4HCR4EkIIIYQQQoiDIMGTEEIIIYQQQhwECZ6EEEIIIYQQ4iCoYz0AIYQQQjQXDIaotnvwB0Po1UqSTbpYD0m0kdPjp8HlAyDBoMGok1svIY5mcgYLIYQQHUi1zcMXq8t58eciqm0euqebue/MngzMTcBi0MR6eOIghUIhSmqd/GfOJr5eW4FCAWf0zeSPp3SjU0pcrIcnhGgjWbYnhBBCdBCNTi///HoDD3+xnmqbB4BNlTauemMxczdXEwxKDaajRVm9i/NemMcXq3fhD4bwBUJ8trKcyS/Op7TOGevhCSHaSIInIYQQooOosXv5aPnOiH0Pf7meS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"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.pairplot(df, hue='sex', diag_kind=\"hist\") ## Previously it has used diag_kind='kde'"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Categorical distributions\n",
"We can represent categorical scatter plots with **catplot**. The main challenge is that all the values of the categorical variables correspond with a point.\n",
"\n",
"There are two implementations:\n",
"* **strip** (the default), which adjusts the positions of points on the categorical axis with a small amount of random “jitter”:\n",
"* **swarm**, which prevents points from overlapping.\n"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAfsAAAHqCAYAAAADAefsAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAABCNUlEQVR4nO3df3RU9Z3/8dckmJAhISwREpAIGKBgkNDGFsEWQk8B0WNp2e2htVipbgXDtqLH4tdS6s+C4GqpRkDXLVCt2nW7arenArYLeDB1FyigRvxBBIFKoARMgsEEkvv9I07MzNw7czOZH3fufT7OyWlz54cf5mbu+34+n/fn/fEZhmEIAAC4VkaqGwAAABKLYA8AgMsR7AEAcDmCPQAALkewBwDA5Qj2AAC4HMEeAACXI9gDAOByrg/2hmGosbFR1A4CAHiV64N9U1OT8vPz1dTUlOqmAACQEq4P9gAAeB3BHgAAlyPYAwDgcgR7AABcjmAPAIDLEewBAHA5gj0AAC5HsAcAwOUI9gAAuBzBHgAAlyPYAwDgcgR7AABcjmAPAIDLEewBAHA5gj0AAC7XK9UNAIB0sqmmTqu37Ne7x05rVGGuKqeO0IzSolQ3C4jIZxiGkepGJFJjY6Py8/PV0NCgvn37pro5ANLYppo6zX9yV9Axn09aO7ecgA9HYxgfAGxavWV/2DHDkFZvrU1BawD7CPYAYNO7x06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kr6JjPJ62dW07Ah6MxjA8ANq3esj/smGFIq7fWpqA1gH0EewCw6d1jp02
"text/plain": [
"<Figure size 511.111x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.catplot(x=\"day\", y=\"total_bill\", data=df, kind='strip');"
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAfsAAAHqCAYAAAADAefsAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAA/00lEQVR4nO3df3RU5Z3H8c8gJRASYIkwAY2IAapCCS22CLQQegpoPUrrbg/Vskp1LWmyLuixdl1qxR8FpatYGxC7VqW1Std10a5nBa0b8GDWXaBGa2zFAAooAwvSJAgGxLt/5AeZ5P6ayczcX+/XOZyjdyaTh7nc+73P83yf7xMzDMMQAAAIrV5eNwAAAGQXwR4AgJAj2AMAEHIEewAAQo5gDwBAyBHsAQAIOYI9AAAhR7AHACDkQh/sDcNQU1OTqB0EAIiq0Af75uZmDRw4UM3NzV43BQAAT4Q+2AMAEHUEewAAQo5gDwBAyBHsAQAIOYI9AAAhR7AHACDkCPYAAIQcwR4AgJAj2AMAEHIEewAAQo5gDwBAyBHsAQAIOYI9AAAhR7AHACDkCPYAAIRcb68bAAB+sqE+oVU1Ddq+/4jGxAtUOWOUZo8t9rpZQI/EDMMwvG5ENjU1NWngwIFqbGzUgAEDvG4OAB/bUJ/Qgl9vSzoWi0mr500k4CPQGMYHgDarahq6HTMMadXGHR60Bsgcgj0AtNm+/4jp8Xf2N+e4JUBmEewBoM2YeIHp8dHxwhy3BMgsT4P9kiVLFIvFkv4UF5+aFzMMQ0uWLNHw4cPVr18/lZeXq76+3sMWAwizyhmjFIslH4vFpKryUm8aBG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111x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.catplot(x=\"day\", y=\"total_bill\", data=df, kind='swarm');"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkkAAAHqCAYAAAAQ4NrpAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAACnbUlEQVR4nOzdd3yT9fbA8U/SvUv3oHRSyihl771RkOGeICoqLkTF9XMrbq56caIiioqiqKCI7L2hrLJKKV107z2S/P54oCXNUy5g23Sc9+vV1735Pkl6IpCcfMc5GoPBYEAIIYQQQhjRmjsAIYQQQoimSJIkIYQQQggVkiQJIYQQQqiQJEkIIYQQQoUkSUIIIYQQKiRJEkIIIYRQIUmSEEIIIYQKSZKEEEIIIVS0+CTJYDBQUFCA1MwUQgghxJVo8UlSYWEhLi4uFBYWmjsUIYQQQjQjLT5JEkIIIYS4GpIkCSGEEEKokCRJCCGEEEKFJElCCCGEECokSRJCCCGEUCFJkhBCCCGECkmShBBCCCFUSJIkhBBCCKFCkiQhhBBCCBWSJAkhhBBCqJAkSQghhBBChSRJQgghhBAqJEkSQgghhFAhSZIQQgghhApJkoQQrU6lTk9hWaW5wxBCNHGW5g5ACCEaS3mVjndWn+SnvUkUlVfR2c+Z567pyMAwD3OHJoRogmQmSQjRarz0RwxfbYunqLwKgJhzBdz9zV5OpBWYOTIhRFMkSZIQolXILa7g1wPJJuMVVXq+3ZlghoiEEE2dJElCiFYhNb+MSp1B9VpSTkkjRyOEaA4kSRJCtArBHg442apvw4z0d2nkaIQQzYFZk6SXX34ZjUZj9OPj41N93WAw8PLLL+Pn54ednR3Dhg0jJibGjBELIZorO2sLHhoeZjLu6WTDtAFBjR+QEK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
"source": [
"#Adding a a third variable\n",
"sns.catplot(x=\"day\", y=\"total_bill\", hue='sex', data=df, kind='swarm');"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Distribution of observations within categories\n",
"Boxplots and violin plots provide an excellent way to understand the distribution of categorical variables when we have a lot of data."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Boxplot\n",
"Boxplot shows the three quartile values of the distribution along with extreme values.\n",
"\n",
"A rectangle is drawn to represent the second and third quartiles, usually with a vertical line inside it, to indicate the median value. The lower and upper quartiles are shown as horizontal lines on either side of this rectangle.\n"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.FacetGrid at 0x7f9171ed3df0>"
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAfsAAAHqCAYAAAADAefsAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAqn0lEQVR4nO3de3hUdX7H8c+wyOQeK+IMmMuGXKRIQIXKpbuS3QrbDA1saXetuAbEXXChIFpgy6ZqeIQASblsFmSbVSDWRVvXojZP4gNaQNcsLXGhq3QXDcZcHgkUibk9MOFy+gebKWMAc5nJmfnxfj3PPGTOmZx8Myfkk985v4vDsixLAADAWAPsLgAAAAQXYQ8AgOEIewAADEfYAwBgOMIeAADDEfYAABiOsAcAwHCEPQAAhjM+7C3LUktLi5g7CABwvTI+7FtbWxUfH6/W1la7SwEAwBbGhz0AANc7wh4AAMMR9gAAGI6wBwDAcIQ9AACGI+wBADAcYQ8AgOEIewAADEfYAwBgOMIeAADDEfYAABiOsAcAwHCE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MiwAgVNh2z/69997TyZMnNXbsWN+2Cxcu6O2339bmzZt19OhRSZda+EOHDvW95uTJk11a+5dzOp1dLpsCdkhISNCyZctUVFSkd955p8u8CHTOA9BfbAv7P/uzP9P777/vt+2hhx7SiBEj9KMf/UjDhw+X2+3Wnj17dOedd0qSOjo6tH//fq1bt86OkoEey87OVmZmpm+cfU5ODuPsAfQ728I+NjZWo0aN8tsWHR2twYMH+7YvWbJEBQUFSk9PV3p6ugoKChQVFaVZs2b
"text/plain": [
"<Figure size 511.111x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.catplot(x=\"day\", y=\"total_bill\", kind=\"box\", data=df)"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.FacetGrid at 0x7f9171d2bf10>"
]
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjEAAAHqCAYAAAD1fh+FAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAAA5aklEQVR4nO3de3hU1f32/3s4ZHIOyGEmGBIxEBQJIFIRaIGKxGZoPGCrRWtAbAMFodQaLM0jBoFwSAUMoDYqB7VIRUX7zZVQUDlYqHwJhRZPaJCS5AcBDzEhkUyAzPOHv8xDhEASZrJnz7xf1zUXmb33rPlMhiT3rL32WhaXy+USAACAybQxugAAAICWIMQAAABTIsQAAABTIsQAAABTIsQAAABTIsQAAABTIsQAAABTIsQAAABT8vsQ43K5VFlZKeb0AwDAv/h9iDl58qSioqJ08uRJo0sBAAAe5PchBgAA+CdCDAAAMCVCDAAAMCVCDAAAMCVCDAAAMCVCDAAAMCVCDAAAMCVCDAAAMCVCDAAAMCVCD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pUaXCAC4CMNDTFVVle677z4999xz6tixo3u7y+XSsmXLlJGRobFjx6pv375au3atvv32W61bt87AiuEvmCcHAMzN8BAzdepUjRkzRrfcckuD7YcPH1ZZWZmSkpLc26xWq0aMGKFdu3Y12p7T6VRlZWWDG3AhzJMDAOZmaIhZv369/vWvf2nBggXn7av/A2Kz2Rpst9lsF/3jsmDBAkVFRblv3bt392zR8BvMkwMA5mZYiCkpKdFvf/tbvfzyywoODm70OIvF0uC+y+U
"text/plain": [
"<Figure size 572.125x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.catplot(x=\"day\", y=\"total_bill\", hue=\"smoker\", kind=\"box\", data=df)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Violinplot\n",
"Violinplots combine a boxplot with the kernel density estimation.\n",
"\n",
"* the thin line at the center is the interquartile range\n",
"* the thin line is the 95% confidence interval\n",
"* the white dot is the median\n",
"* the spread of the violin shape is a kernel density estimation\n"
]
},
{
"cell_type": "code",
"execution_count": 59,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.FacetGrid at 0x7f81c0fc4880>"
]
},
"execution_count": 59,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAWAAAAFgCAYAAACFYaNMAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAABOAklEQVR4nO3dd3hc133n//e50we9F6KTIEiwk2BvKlaJqWLZsR0767UTZV3zaLO7Xm/yi51kd72P49iWm2xLsmT1TomyJEqUbEkkJZEUxSJKYhU7CAIE0dv0e35/3AEIUuwEcAeD7+t57jPAYDDzRZnPnDn3FKW1RgghxMgz7C5ACCHGKglgIYSwi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Zamtr+fGPf0xGxtlfjEY7OwK4GviS1vq/KKWeBj4HPHqB75kNTNdaf+IZrJT6OvB1gLKysqGu9bJ1d1uD+zUKMzWfWFoB2puBmZKD6csaM6MZVqxYwR133AHAypUrba5GXBalQDmsbhS8aM8ZXzdjqGjQao1HgqhokOjglnmoGyPYhQp2oXTskh56165dNDc3SwAPoUNa6/fjH2/F6he+kD+dLXwBtNb3AveCNQ54KAocCvPnz+eWW26hsbGR442NNDXuIhaL954oA52SQzS1gFjGOGLpRUOySeZQt8C8u17C0d10RfexevXq0y6vlOnPIVh705DcV9LSJsSiKDMSv4xaXQ9mzOpy0KZ1G20OtG5Pv85E9XdB6BgqFgUzMugyjKO/JRwNfWIY3mAer5e0tHQyx+WSkVFFWlraQDdEf3+
"text/plain": [
"<Figure size 360x360 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"sns.catplot(x=\"total_bill\", y=\"day\", kind=\"violin\", data=df)"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.axisgrid.FacetGrid at 0x7f9171dc4ac0>"
]
},
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkYAAAHqCAYAAADh64FkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9hAAAPYQGoP6dpAACBN0lEQVR4nO3deZxbZb0/8M85WSezz3Q6S6fLdJnuLV2gpSwtSNHKVRRxARSqiCJulcvFi/2JRaBFvCBwKygutIrIvXoF/fFTpFehKhVlaaEtpaXrzHT2fcmenN8fyZNJZjIzWc7JOZl83q/XvJgmmeQp6SSffJ/v8zySoigKiIiIiAiy3gMgIiIiMgoGIyIiIqIwBiMiIiKiMAY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cSjM0fsCgROgajLZt2wZJkmK+qqqqItcrioJt27ahpqYGeXl52LBhAw4fPqzjiIn0wRd0YxPByCqHwhHA58mIWDGiROheMVq8eDFaWloiXwcPHoxcd//99+PBBx/Ezp078eqrr6KqqgobN27EwMCAjiMmyjwGI2OLVIxMw1NpfOM1nujnhBU9GovuwchsNqOqqiryVVFRASBULXrooYewdetWXHXVVViyZAl2794Np9OJp556SudRE2UWg5GxDU+lDVeM+MZrPNzHiBKhezB69913UVNTg7q6OnziE5/AyZMnAQCnTp1Ca2srLr/88shtbTYb1q9fj3379o15fx6PB/39/TFfenrqqadw6623si+E0sJgZGziDdcsKTCHX1X5O288nEqjROgajNasWYOf/exn+OMf/4gf/ehHaG1txbp169DV1YXW1lYAQGVlZczPVFZWRq6LZ8eOHSguLo58TZ8+XdO/w0Qef/xxvPHGG+jr69N1HJTd+IJubCKsWmQFZvYYGRZ/jygRugajTZs24SMf+QiWLl2Kyy67DP/v//0/AMDu3bsjt5EkKeZnFEUZdVm0O+64A319fZGvxsZGbQZPlEGsGBmbeE7MMiI9RnyejIe/R5QI3afSouXn52Pp0qV49913I6vTRlaH2tvbR1WRotlsNhQVFcV8GQF3K6Z08JOusUUHI7PEipFRRVYPmhT+HtGYDBWMPB4Pjhw5gurqatTV1aGqqgp79uyJXO/1erF3714eoEk5h590jU30E5klBSb2GBmWCEN5DEY0DrOeD37bbbfhAx/4AGbMmIH29nbcc8896O/vxw033ABJkrBlyxZs374d8+bNw7x587B9+3Y4HA5ce+21eg47JcFgUO8hUBbjMmNjEyHIJA1XjBiMjMfn88Ekhc608zEY0Rh0DUZNTU245ppr0NnZiYqKCqxduxavvPIKZs6cCQC4/fbb4XK5cMstt6Cnpwdr1qzBCy+8gMLCQj2HnRJFUfQeAmWx6DDET7rGEwlGsgKTFHsZGYfX64VZVmAxKXCy8kpj0DUYPf300+NeL0kStm3bhm3btmVmQBpijxGlgxUjYxO/3yYJnEozMJ/PB4sMmCV+wKCxGarHaDLjVBqlgxUjY4sJRuGpNH4YMh6v1xvea0phrx6NicEoQziVRulgxcjYRAiSJQVyeCqNH4aMx+fzhabSZMDvZzCi+BiMMoSfHikdbrc77vdkDMPBCJEeIwYj4/GLqTRZQTCocLqT4mIwyhC+SFI6RJUo3xyElxUjwxG/3zIAsf0sPwwZjzeqYgRw6wuKj8EoQxiMKB1iKq3AosDtYcXIaMRUuSwBkhQKR/ydNx6/zwcLt1SgCTAYZQg/PVI6XC4XAKDAEoTHw+ZroxEhSJxWJEnsKzQin98f2lKBFSMaB4NRhvDTI6XD4/HAIgN2U2g1DYO2sUQqRgj9lxUj41GUUE+RmRUjmgCDUYbwjYzS4Xa7YTMpsJp
"text/plain": [
"<Figure size 596.375x500 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sns.catplot(y=\"total_bill\", x=\"day\", hue=\"time\", kind=\"violin\", data=df)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "skip"
}
},
"source": [
"# References\n",
"* [Seaborn](http://seaborn.pydata.org) documentation"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "skip"
}
},
"source": [
"## Licence\n",
"The notebook is freely licensed under under the [Creative Commons Attribution Share-Alike license](https://creativecommons.org/licenses/by/2.0/). \n",
"\n",
"© Carlos A. Iglesias, Universidad Politécnica de Madrid."
]
}
],
"metadata": {
"datacleaner": {
"position": {
"top": "50px"
},
"python": {
"varRefreshCmd": "try:\n print(_datacleaner.dataframe_metadata())\nexcept:\n print([])"
},
"window_display": false
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
"autocomplete": true,
"bibliofile": "biblio.bib",
"cite_by": "apalike",
"current_citInitial": 1,
"eqLabelWithNumbers": true,
"eqNumInitial": 1,
"hotkeys": {
"equation": "Ctrl-E",
"itemize": "Ctrl-I"
},
"labels_anchors": false,
"latex_user_defs": false,
"report_style_numbering": false,
"user_envs_cfg": false
}
},
"nbformat": 4,
"nbformat_minor": 4
}