Skip to main content

EnhancedPlotExt

Trait EnhancedPlotExt 

Source
pub trait EnhancedPlotExt {
    // Required methods
    fn plot(&self) -> StatPlotBuilder<'_>;
    fn plot_line<P: AsRef<Path>>(&self, column: &str, path: P) -> Result<()>;
    fn plot_scatter<P: AsRef<Path>>(
        &self,
        x_col: &str,
        y_col: &str,
        path: P,
    ) -> Result<()>;
    fn plot_hist<P: AsRef<Path>>(
        &self,
        column: &str,
        path: P,
        bins: Option<usize>,
    ) -> Result<()>;
    fn plot_box<P: AsRef<Path>>(
        &self,
        value_col: &str,
        group_col: &str,
        path: P,
    ) -> Result<()>;
    fn plot_corr<P: AsRef<Path>>(&self, path: P) -> Result<()>;
    fn plot_distributions<P: AsRef<Path>>(
        &self,
        path_prefix: P,
    ) -> Result<Vec<String>>;
    fn plot_report<P: AsRef<Path>>(&self, output_dir: P) -> Result<Vec<String>>;
}
Expand description

Enhanced plotting extension trait for DataFrame

Required Methods§

Source

fn plot(&self) -> StatPlotBuilder<'_>

Get a statistical plotting builder

Source

fn plot_line<P: AsRef<Path>>(&self, column: &str, path: P) -> Result<()>

Quick line plot of a column

Source

fn plot_scatter<P: AsRef<Path>>( &self, x_col: &str, y_col: &str, path: P, ) -> Result<()>

Quick scatter plot of two columns

Source

fn plot_hist<P: AsRef<Path>>( &self, column: &str, path: P, bins: Option<usize>, ) -> Result<()>

Quick histogram of a column

Source

fn plot_box<P: AsRef<Path>>( &self, value_col: &str, group_col: &str, path: P, ) -> Result<()>

Quick box plot grouped by category

Source

fn plot_corr<P: AsRef<Path>>(&self, path: P) -> Result<()>

Plot correlation matrix

Source

fn plot_distributions<P: AsRef<Path>>( &self, path_prefix: P, ) -> Result<Vec<String>>

Create distribution plots for all numeric columns

Source

fn plot_report<P: AsRef<Path>>(&self, output_dir: P) -> Result<Vec<String>>

Generate a comprehensive data visualization report

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§