In [1]:
%matplotlib inline
from ggplot import *
In [2]:
ggplot(mpg, aes(x='class', y='hwy')) + geom_boxplot()
Out[2]:
In [3]:
ggplot(mpg, aes(x='class', y='hwy')) + geom_boxplot() + facet_wrap('manufacturer')
Out[3]:
In [4]:
ggplot(diamonds, aes(x='clarity', y='price')) + geom_boxplot()
Out[4]:
In [5]:
ggplot(diamonds, aes(x='clarity', y='price')) + geom_boxplot(outliers=False)
Out[5]:
In [6]:
ggplot(diamonds, aes(x='clarity', y='price')) + geom_boxplot(outliers=False, median=False)
Out[6]:
In [7]:
ggplot(diamonds, aes(x='clarity', y='price')) + geom_boxplot(outliers=False, median=False, lines=False)
Out[7]:
In [8]:
ggplot(diamonds, aes(x='clarity', y='price')) + geom_boxplot(outliers=False, notch=True)
Out[8]:
In [10]:
ggplot(chopsticks, aes(x='individual', y='food_pinching_effeciency')) + geom_boxplot()
Out[10]:
In [ ]: