Let me give you the perfect solution.
The charting, graphing and analysis can be done using the PyLab environment.
You can integrate the code into R using the package called rPython.
You can integrate it to C and many other languages.
Python also comes with infinite more features. So instead of looking for a particular library, use Python.