In [3]:
from ggplot import *
%matplotlib inline
In [4]:
ggplot(meat, aes(x='date', y='beef')) + geom_line()
Out[4]:
In [9]:
ggplot(pageviews, aes(x='date_hour', y='pageviews')) + geom_line()
Out[9]:
In [15]:
import pandas as pd
meat_lng = pd.melt(meat, id_vars=['date'])
ggplot(meat_lng, aes(x='date', y='value', color='variable')) + geom_line()
Out[15]:
In [16]:
ggplot(meat_lng, aes(x='date', y='value', linetype='variable')) + geom_line()
Out[16]:
In [ ]: