项目作者: yhat

项目描述 :
用于python的ggplot端口
高级语言: Python
项目地址: git://github.com/yhat/ggpy.git
创建时间: 2013-10-07T13:30:53Z
项目社区:https://github.com/yhat/ggpy

开源协议:BSD 2-Clause "Simplified" License

下载


ggplot


What is it?

ggplot is a Python implementation of the grammar of graphics. It is not intended
to be a feature-for-feature port of ggplot2 for R—though
there is much greatness in ggplot2, the Python world could stand to benefit
from it. So there will be feature overlap, but not neccessarily mimicry
(after all, R is a little weird).

You can do cool things like this:

  1. ggplot(diamonds, aes(x='price', color='clarity')) + \
  2. geom_density() + \
  3. scale_color_brewer(type='div', palette=7) + \
  4. facet_wrap('cut')

Installation

  1. $ pip install -U ggplot
  2. # or
  3. $ conda install -c conda-forge ggplot
  4. # or
  5. pip install git+https://github.com/yhat/ggplot.git

Examples

Examples are the best way to learn. There is a Jupyter Notebook full of them.
There are also notebooks that show how to do particular things with ggplot
(i.e. make a scatter plot or make a histogram).

What happened to the old version that didn’t work?

It’s gone—the windows, the doors, everything.
Just kidding, you can find it here, though I’m not sure why you’d want to look at it. The data grouping and manipulation bits were re-written
(so they actually worked) with things like facets in mind.

Contributing

Thanks to all of the ggplot contributors!
See contributing.md.