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

In [3]:
ggplot(aes(x='date', y='beef'), data=meat) + \
    geom_point() + \
    stat_smooth()


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

In [4]:
ggplot(aes(x='date', y='beef'), data=meat) + \
    geom_point() + \
    stat_smooth(method='loess')


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

In [16]:
ggplot(aes(x='date', y='beef'), data=meat) + \
    geom_point() + \
    stat_smooth(method='ma', window=12)


Out[16]:
<ggplot: (293523049)>

In [17]:
pigeons.head()


Out[17]:
pos breeder pigeon name color sex ent arrival speed to_win eligible
0 1 Texas Outlaws 19633-AU15-FOYS NaN BCWF H 1 42:14.0 172.155 0:00:00 Yes
1 2 Junior Juanich 0402-AU15-JRL NaN SIWF H 1 47:36.0 163.569 0:05:21 Yes
2 3 Jerry Allensworth 0404-AU15-VITA Perch Potato BB H 1 47:41.0 163.442 0:05:27 Yes
3 4 Alias-Alias 2013-AU15-ALIA NaN BBSP H 1 47:43.0 163.392 0:05:28 Yes
4 5 Greg Glazier 5749-AU15-SLI NaN BC H 1 47:44.0 163.366 0:05:30 Yes

In [20]:
ggplot(pigeons, aes(x='speed', y='pos')) + \
    geom_point(size=1000, color='OldLace')


Out[20]:
<ggplot: (296454589)>

In [26]:
ggplot(pigeons, aes(x='speed', y='pos')) + \
    geom_point() + \
    stat_smooth(method='lm', se=False)


Out[26]:
<ggplot: (298776365)>

In [27]:
ggplot(pigeons, aes(x='speed', y='pos')) + \
    geom_point() + \
    stat_smooth(method='loess')


Out[27]:
<ggplot: (297713925)>

In [28]:
ggplot(pigeons, aes(x='speed', y='pos')) + \
    geom_point() + \
    stat_smooth(method='loess', se=False)


Out[28]:
<ggplot: (297486349)>

In [34]:
ggplot(pigeons, aes(x='speed', y='pos')) + \
    geom_point() + \
    stat_smooth(method='loess', se=False) + \
    facet_wrap("breeder")


Out[34]:
<ggplot: (309876873)>

In [ ]: