Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/duskmoon314/gongbi

Gongbi (工笔) is a data visualization crate inspired by ggplot2
https://github.com/duskmoon314/gongbi

data-visualization grammar-of-graphics rust

Last synced: 4 days ago
JSON representation

Gongbi (工笔) is a data visualization crate inspired by ggplot2

Awesome Lists containing this project

README

        

# Gongbi (工笔)

A data visualization crate based on plotters

## Usage

```rust
let mpg = CsvReadOptions::default()
.with_has_header(true)
.try_into_reader_with_file_path(Some("examples/mpg.csv".into()))?
.finish()?;

let plot = plot!(mpg, aes!("displ", "hwy"), save = "gongbi.svg")
+ geom_point!()
+ labs!(caption = "Demo of geom_point");

plot.draw()?;
```

![example scatters of mpg](gongbi.svg)

## License

Licensed under either of

- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

at your option.

### Note

- `mpg.csv` is copied from [ggplot2](https://github.com/tidyverse/ggplot2) package.