/gongbi

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

Primary LanguageRustApache License 2.0Apache-2.0

Gongbi (工笔)

A data visualization crate based on plotters

Usage

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

License

Licensed under either of

at your option.

Note

  • mpg.csv is copied from ggplot2 package.