My question is as simple as the title: i want to use R
's ggplot2
but all my data handling is done in Python
: is there a Python API for ggplot2
, or an easy way to use ggplot2
through Python
?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Great answers so far, but don't forget about Bokeh: http://bokeh.pydata.org/
All sorts of great ways to visualize data, emulating ggplot2 in some ways, but also inspired by the amazing D3.js library.
Here's an example of a ggplot2-style graph: http://bokeh.pydata.org/docs/gallery/density.html
Ever wanted to make something like this in Python?
Here's the quickstart guide: http://bokeh.pydata.org/docs/quickstart.html#quickstart
You can use RPy to call R from within python or there is ggplot for python if you do not like matplotlib.
Check this out: https://github.com/yhat/ggplot
This is a python port of R's ggplot2.
RPy allows you to call R from Python and provides with data conversion utilities. You can use ggplot2 function with the Graphics package, look at this section for some examples.