In [1]:
%matplotlib inline
from ggplot import *
In [4]:
ggplot(diamonds, aes(x='carat', y='price')) + \
geom_point(alpha=0.05, color='orange') + \
stat_smooth(method='lm') + \
xlim(0, 5) + \
ylim(0, 20000)
Out[4]:
In [ ]: