In [1]:
%matplotlib inline
from ggplot import *
import pandas as pd
In [2]:
ggplot(diamonds, aes(x='carat', y='price')) + \
geom_point() + \
scale_y_log()
Out[2]:
In [3]:
pageviews['hour'] = pageviews.date_hour.apply(lambda x: x.hour)
ggplot(pageviews, aes(x='hour', weight='pageviews')) + \
geom_bar()
Out[3]:
In [4]:
ggplot(pageviews, aes(x='hour', weight='pageviews')) + \
geom_bar() + \
scale_y_log()
Out[4]:
In [ ]: