Is there a Python API for R's ggplot2? [closed]

廉价感情. 提交于 2019-12-23 10:58:07

问题


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 ?


回答1:


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.




回答2:


Check this out: https://github.com/yhat/ggplot

This is a python port of R's ggplot2.




回答3:


Great answers so far, but don't forget about Bokeh: https://bokeh.org/

All sorts of great ways to visualize data, emulating ggplot2 in some ways, but also inspired by the amazing D3.js library.

Ever wanted to make something like this in Python?

Here's the quickstart guide: http://docs.bokeh.org/docs/quickstart.html#quickstart




回答4:


You can use RPy to call R from within python or there is ggplot for python if you do not like matplotlib.



来源:https://stackoverflow.com/questions/19887757/is-there-a-python-api-for-rs-ggplot2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!