In [2]:
from ggplot import *
%matplotlib inline
In [3]:
ggplot(aes(x='date', y='beef'), data=meat) + \
geom_point() + \
stat_smooth()
Out[3]:
In [4]:
ggplot(aes(x='date', y='beef'), data=meat) + \
geom_point() + \
stat_smooth(method='loess')
Out[4]:
In [16]:
ggplot(aes(x='date', y='beef'), data=meat) + \
geom_point() + \
stat_smooth(method='ma', window=12)
Out[16]:
In [17]:
pigeons.head()
Out[17]:
In [20]:
ggplot(pigeons, aes(x='speed', y='pos')) + \
geom_point(size=1000, color='OldLace')
Out[20]:
In [26]:
ggplot(pigeons, aes(x='speed', y='pos')) + \
geom_point() + \
stat_smooth(method='lm', se=False)
Out[26]:
In [27]:
ggplot(pigeons, aes(x='speed', y='pos')) + \
geom_point() + \
stat_smooth(method='loess')
Out[27]:
In [28]:
ggplot(pigeons, aes(x='speed', y='pos')) + \
geom_point() + \
stat_smooth(method='loess', se=False)
Out[28]:
In [34]:
ggplot(pigeons, aes(x='speed', y='pos')) + \
geom_point() + \
stat_smooth(method='loess', se=False) + \
facet_wrap("breeder")
Out[34]:
In [ ]: