{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Enrichment Plot" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "A function to plot step plots of cumulative counts." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "> from mlxtend.general_plotting import category_scatter" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Overview" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In enrichment plots, the y-axis can be interpreted as \"how many samples are less or equal to the corresponding x-axis label.\"" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### References\n", "\n", "- -" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Example 1 - Enrichment Plots from Pandas DataFrames" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
\n", " | X1 | \n", "X2 | \n", "
---|---|---|
0 | \n", "1.1 | \n", "1.5 | \n", "
1 | \n", "2.1 | \n", "1.8 | \n", "
2 | \n", "3.1 | \n", "2.1 | \n", "
3 | \n", "3.9 | \n", "2.5 | \n", "