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

scale_color_yhat

scale_color_yhat applies Yhat colors to discrete color variables in your ggplots.


In [2]:
ggplot(mtcars, aes(x='wt', y='mpg', color='factor(cyl)')) + \
    geom_point(size=150) + \
    scale_color_yhat()


Out[2]:
<ggplot: (284430245)>

In [ ]: