In [1]:
%matplotlib inline
from ggplot import *
In [2]:
ggplot(mtcars, aes(x='wt', y='mpg', color='factor(cyl)')) + \
geom_point(size=100)
Out[2]:
In [3]:
ggplot(mtcars, aes(x='wt', y='mpg', color='factor(cyl)')) + \
geom_point(size=100) + \
scale_color_funfetti()
Out[3]:
In [4]:
ggplot(mtcars, aes(x='wt', y='mpg', color='factor(cyl)')) + \
geom_point(size=100) + \
scale_color_funfetti(type='confetti')
Out[4]:
In [5]:
ggplot(mtcars, aes(x='wt', y='mpg', color='factor(cyl)')) + \
geom_point(size=100) + \
scale_color_funfetti(type='sprinkles')
Out[5]:
In [6]:
ggplot(pigeons, aes(x='pos', y='speed', color='breeder')) + \
geom_point(size=100) + \
scale_color_funfetti(type='sprinkles')
Out[6]:
In [ ]: