I would like to add a legend to my Pie chart but I don't seem to get this
working:

Below is my code, this is done on Rpy2.

grdevices = importr('grDevices')
    grdevices.png(file=FileNameLocation, width=1400, height=1000)
    Robjects.r.par(mar=[1, 0, 2, 12], cex=1.0)
    Robjects.r.pie(Robjects.IntVector(values), labels=names,
col=Robjects.r.rainbow(colors))
    Robjects.r.title("Therapeutic Influence of analysed
phytochemcials/plants")
    Robjects.r.legend(Robjects.StrVector(names),"NULL",names)
    grdevices.dev_off()

-- 
Regards/Groete/Mit freundlichen Grüßen/recuerdos/meilleures salutations/
distinti saluti/siong/duì yú/привет

Jurgens de Bruin

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to