Je travaille avec rpy2 v2.1.9 à Python3.2, je ne comprends pas pourquoi je ne peux pas utiliser la bibliothèque ggplot2ggplot2 n'est pas présent dans rpy2 pour python?
import rpy2
from rpy2.robjects import r
r.library("ggplot2")
Voici le message d'erreur que je suis
Error in function (package, help, pos = 2, lib.loc = NULL, character.only = FALSE, :
there is no package called 'ggplot2'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.2/dist-packages/rpy2/robjects/functions.py", line 82, in __call__
return super(SignatureTranslatedFunction, self).__call__(*args, **kwargs)
File "/usr/local/lib/python3.2/dist-packages/rpy2/robjects/functions.py", line 34, in __call__
res = super(Function, self).__call__(*new_args, **new_kwargs)
rpy2.rinterface.RRuntimeError: Error in function (package, help, pos = 2, lib.loc = NULL, character.only = FALSE, :
there is no package called 'ggplot2'
Je suis surpris que rpy2 2.1.9 et Python 3.2 jouent bien ensemble. – lgautier