In [1]:
from ggplot import *
%matplotlib inline
In [3]:
ggplot(mtcars, aes(x='cyl')) + geom_bar()
Out[3]:
In [4]:
ggplot(mtcars, aes(x='cyl', fill='blue')) + geom_bar()
Out[4]:
In [5]:
ggplot(mtcars, aes(x='cyl')) + geom_bar(color='red')
Out[5]:
In [9]:
ggplot(diamonds, aes(x='clarity', weight='x')) + geom_bar()
Out[9]:
In [11]:
ggplot(diamonds, aes(x='clarity')) + geom_bar()
Out[11]:
In [ ]: