In [2]:
from ggplot import *
%matplotlib inline

In [3]:
ggplot(aes(x='price'), data=diamonds) + stat_density()


Out[3]:
<ggplot: (278939837)>

In [4]:
ggplot(aes(x='price', color='clarity'), data=diamonds) + stat_density()


Out[4]:
<ggplot: (279761325)>

In [5]:
ggplot(aes(x='price', color='clarity', linetype='cut'), data=diamonds) + stat_density()


Out[5]:
<ggplot: (279975917)>

In [6]:
ggplot(aes(x='price'), data=diamonds) + stat_density() + facet_wrap('cut')


Out[6]:
<ggplot: (282390593)>

In [7]:
ggplot(aes(x='price'), data=diamonds) + stat_density() + facet_wrap('cut', 'clarity')


Out[7]:
<ggplot: (283469113)>

In [8]:
ggplot(aes(x='price'), data=diamonds) + stat_density() + facet_grid('cut', 'clarity')


Out[8]:
<ggplot: (285994141)>

In [9]:
ggplot(aes(x='price'), data=diamonds) + stat_density() + scale_x_log()


Out[9]:
<ggplot: (288094037)>

In [ ]: