Since this is a Python / rpy2 question, the code in Python:
from rpy2.robjects.lib import ggplot2
from rpy2.robjects import r
from rpy2.robjects.packages import importr
scales = importr('scales')
iris = r('iris')
p = ggplot2.ggplot(iris) + \
ggplot2.geom_point(ggplot2.aes_string(x="Sepal.Length", y="Sepal.Width")) + \
ggplot2.scale_x_continuous(trans = scales.log2_trans())
p.plot()