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

scale_x_reverse

scale_x_reverse reverses your x-axis. Its parameters are:


In [2]:
ggplot(diamonds, aes(x='price', y='carat')) + \
    geom_point() + \
    scale_x_reverse()


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

In [3]:
ggplot(pigeons, aes(x='speed')) + \
    geom_histogram() + \
    scale_x_reverse()


Out[3]:
<ggplot: (285328677)>

In [4]:
ggplot(pigeons, aes(x='speed', y='pos')) + \
    geom_line() + \
    scale_x_reverse()


Out[4]:
<ggplot: (285450581)>

In [ ]: