Yes there is. If using the manual mapping in rpy2.robjects.lib.ggplot2
, is it currently missing from there, but a way to patch this should be:
import rpy2.robjects.lib.ggplot2 as ggplot2
class ThemeClassic(ggplot2.Theme):
_constructor = ggplot2.ggplot2.theme_classic
@classmethod
def new(cls):
res = cls(cls._constructor())
return res
# Monkey patching ggplot2
ggplot2.theme_classic = ThemeClassic.new