In [1]:
%matplotlib inline
from ggplot import *
In [2]:
pigeons.head()
Out[2]:
In [3]:
ggplot(pigeons, aes(x='speed', y='pos', color='speed')) + \
geom_point() + \
scale_color_gradient()
Out[3]:
In [4]:
ggplot(pigeons, aes(x='speed', y='pos', color='speed')) + \
geom_point() + \
scale_color_gradient(low='blue', high='red')
Out[4]:
In [5]:
ggplot(pigeons, aes(x='speed', y='pos', color='speed')) + \
geom_point() + \
scale_color_gradient(low='FloralWhite', high='LemonChiffon')
Out[5]:
In [6]:
ggplot(pigeons, aes(x='speed', y='pos', color='speed')) + \
geom_point() + \
scale_color_gradient(low='LawnGreen', high='DarkSalmon')
Out[6]:
In [ ]: