A data visualization crate based on plotters
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()?;
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
mpg.csv
is copied from ggplot2 package.