pub struct StatPlotBuilder<'a> { /* private fields */ }Expand description
Statistical plotting builder
Implementations§
Source§impl<'a> StatPlotBuilder<'a>
impl<'a> StatPlotBuilder<'a>
pub fn new(df: &'a DataFrame) -> Self
Sourcepub fn color_scheme(self, scheme: ColorScheme) -> Self
pub fn color_scheme(self, scheme: ColorScheme) -> Self
Set color scheme
Sourcepub fn correlation_matrix<P: AsRef<Path>>(self, path: P) -> Result<()>
pub fn correlation_matrix<P: AsRef<Path>>(self, path: P) -> Result<()>
Create a correlation matrix heatmap
Sourcepub fn pair_plot<P: AsRef<Path>>(
self,
columns: Option<&[String]>,
path: P,
) -> Result<()>
pub fn pair_plot<P: AsRef<Path>>( self, columns: Option<&[String]>, path: P, ) -> Result<()>
Create a pair plot (scatter matrix)
Sourcepub fn distribution_plots<P: AsRef<Path>>(
self,
path_prefix: P,
) -> Result<Vec<String>>
pub fn distribution_plots<P: AsRef<Path>>( self, path_prefix: P, ) -> Result<Vec<String>>
Create distribution plots for all numeric columns
Sourcepub fn grouped_box_plots<P: AsRef<Path>>(
self,
group_by: &str,
value_columns: Option<&[String]>,
path: P,
) -> Result<()>
pub fn grouped_box_plots<P: AsRef<Path>>( self, group_by: &str, value_columns: Option<&[String]>, path: P, ) -> Result<()>
Create box plots grouped by a categorical column
Auto Trait Implementations§
impl<'a> Freeze for StatPlotBuilder<'a>
impl<'a> !RefUnwindSafe for StatPlotBuilder<'a>
impl<'a> Send for StatPlotBuilder<'a>
impl<'a> Sync for StatPlotBuilder<'a>
impl<'a> Unpin for StatPlotBuilder<'a>
impl<'a> UnsafeUnpin for StatPlotBuilder<'a>
impl<'a> !UnwindSafe for StatPlotBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more