In [1]:
from ggplot import *
%matplotlib inline
In [2]:
ggplot(mtcars, aes(x='wt', y='mpg', label='name')) + geom_text()
Out[2]:
In [3]:
ggplot(mtcars, aes(x='wt', y='mpg', label='name')) + geom_text(rotation=45.)
Out[3]:
In [4]:
ggplot(mtcars, aes(x='wt', y='mpg', label='name')) + geom_text(rotation=-45.)
Out[4]:
In [5]:
ggplot(mtcars, aes(x='wt', y='mpg', label='name')) + geom_text(rotation=-90., color='purple')
Out[5]:
In [6]:
ggplot(mtcars, aes(x='wt', y='mpg', label='name')) + geom_text(size=36, alpha=0.5)
Out[6]:
In [7]:
ggplot(mtcars, aes(x='wt', y='mpg', label='name')) + geom_text(hjust=0.2) + geom_point()
Out[7]:
In [8]:
ggplot(mtcars, aes(x='wt', y='mpg', label='name')) + geom_text(vjust=-1) + geom_point()
Out[8]:
In [ ]: