pub struct MissingnessHeatmap { /* private fields */ }Expand description
A present/absent map: one column per variable, observations down the rows.
Implementations§
Source§impl MissingnessHeatmap
impl MissingnessHeatmap
Sourcepub fn from_columns(
columns: &[Vec<Option<f64>>],
labels: Vec<String>,
) -> Result<Self, StatsError>
pub fn from_columns( columns: &[Vec<Option<f64>>], labels: Vec<String>, ) -> Result<Self, StatsError>
Build from columns of Option<f64> (one column per variable; None =
missing). Columns may differ in length; shorter columns are treated as
missing past their end. labels names the variables.
§Errors
StatsError::EmptyInputif there are no columns.StatsError::LengthMismatchiflabelsandcolumnsdiffer in count.
Sourcepub fn present_color(self, color: RGBColor) -> Self
pub fn present_color(self, color: RGBColor) -> Self
Set the color used for present values.
Sourcepub fn missing_color(self, color: RGBColor) -> Self
pub fn missing_color(self, color: RGBColor) -> Self
Set the color used for missing values.
Sourcepub fn show_percent(self, on: bool) -> Self
pub fn show_percent(self, on: bool) -> Self
Toggle the per-column missing-percentage labels.
Sourcepub fn draw<DB: DrawingBackend>(
&self,
area: &DrawingArea<DB, Shift>,
) -> Result<(), Box<dyn Error>>where
DB::ErrorType: 'static,
pub fn draw<DB: DrawingBackend>(
&self,
area: &DrawingArea<DB, Shift>,
) -> Result<(), Box<dyn Error>>where
DB::ErrorType: 'static,
Render the heatmap onto area.
Trait Implementations§
Source§impl Clone for MissingnessHeatmap
impl Clone for MissingnessHeatmap
Source§fn clone(&self) -> MissingnessHeatmap
fn clone(&self) -> MissingnessHeatmap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MissingnessHeatmap
impl RefUnwindSafe for MissingnessHeatmap
impl Send for MissingnessHeatmap
impl Sync for MissingnessHeatmap
impl Unpin for MissingnessHeatmap
impl UnsafeUnpin for MissingnessHeatmap
impl UnwindSafe for MissingnessHeatmap
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