{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Statistical Graphics with `seaborn`" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "import pandas as pd\n", "import seaborn as sns" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Data set" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "%load_ext rpy2.ipython" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "%R data(C02)\n", "co2 = %R CO2" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Plant | \n", "Type | \n", "Treatment | \n", "conc | \n", "uptake | \n", "
---|---|---|---|---|---|
1 | \n", "1 | \n", "Quebec | \n", "nonchilled | \n", "95.0 | \n", "16.0 | \n", "
2 | \n", "1 | \n", "Quebec | \n", "nonchilled | \n", "175.0 | \n", "30.4 | \n", "
3 | \n", "1 | \n", "Quebec | \n", "nonchilled | \n", "250.0 | \n", "34.8 | \n", "
4 | \n", "1 | \n", "Quebec | \n", "nonchilled | \n", "350.0 | \n", "37.2 | \n", "
5 | \n", "1 | \n", "Quebec | \n", "nonchilled | \n", "500.0 | \n", "35.3 | \n", "