pub struct PlotAdapter<'source, K: Marker> { /* private fields */ }Expand description
A native exact-family plot and an optional safely borrowed array lookup context.
Direct views are snapshotted and released at each binding; .into() releases
the retained source and moves the owned native plot without rendering.
Self::into_parts also preserves the source-free binding metadata.
Implementations§
Source§impl<K: PointAlpha> PlotAdapter<'_, K>
impl<K: PointAlpha> PlotAdapter<'_, K>
Sourcepub fn point_alpha(self, input: impl AlphaInput) -> Result<Self, AdapterError>
pub fn point_alpha(self, input: impl AlphaInput) -> Result<Self, AdapterError>
Bind observation coefficients or pass through a native encoding without reinterpretation.
Sourcepub fn point_alpha_cells(
self,
input: impl AlphaInput,
) -> Result<Self, AdapterError>
pub fn point_alpha_cells( self, input: impl AlphaInput, ) -> Result<Self, AdapterError>
Bind already-expanded coefficients without repeating source rows.
Sourcepub fn point_alpha_linear(
self,
input: impl NumericInput,
domain: (f64, f64),
range: (f64, f64),
) -> Result<Self, AdapterError>
pub fn point_alpha_linear( self, input: impl NumericInput, domain: (f64, f64), range: (f64, f64), ) -> Result<Self, AdapterError>
Materialize the native linear declaration on the bound numeric variable.
Sourcepub fn point_alpha_map(
self,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_map( self, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric row values once, preserving the native declaration through expansion.
Sourcepub fn point_alpha_map_categories(
self,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_map_categories( self, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical row values once before expansion.
Sourcepub fn point_alpha_cells_map(
self,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_cells_map( self, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map explicitly expanded numeric slots without row repetition.
Sourcepub fn point_alpha_cells_map_categories(
self,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_cells_map_categories( self, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map explicitly expanded categorical slots without row repetition.
Sourcepub fn point_alpha_single(
self,
input: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn point_alpha_single( self, input: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Explicitly broadcast exactly one bound alpha value.
Sourcepub fn point_alpha_single_map(
self,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_single_map( self, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map exactly one numeric member and explicitly broadcast its declaration.
Sourcepub fn point_alpha_single_map_categories(
self,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_single_map_categories( self, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map exactly one categorical member and explicitly broadcast its declaration.
Sourcepub fn point_alpha_keyed<I, S, B>(
self,
keys: I,
input: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn point_alpha_keyed<I, S, B>( self, keys: I, input: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Bind exact series/aggregate keys; observations are never implicitly reduced.
Sourcepub fn point_alpha_keyed_from_data<I, S, B>(
self,
source: impl ArraySource,
keys: I,
input: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn point_alpha_keyed_from_data<I, S, B>( self, source: impl ArraySource, keys: I, input: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Bind an independent selector source eagerly, retaining no borrow of it.
Sourcepub fn point_alpha_keyed_map<I, S, B>(
self,
keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_keyed_map<I, S, B>( self, keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric alpha for exact actual series/aggregate selectors.
Sourcepub fn point_alpha_keyed_map_from_data<I, S, B>(
self,
source: impl ArraySource,
keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_keyed_map_from_data<I, S, B>( self, source: impl ArraySource, keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric alpha in an independent selector source.
Sourcepub fn point_alpha_keyed_map_categories<I, S, B>(
self,
keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_keyed_map_categories<I, S, B>( self, keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical alpha for exact series/aggregate selectors.
Sourcepub fn point_alpha_keyed_map_categories_from_data<I, S, B>(
self,
source: impl ArraySource,
keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_keyed_map_categories_from_data<I, S, B>( self, source: impl ArraySource, keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical alpha in an independent selector source.
Sourcepub fn point_alpha_columns<I, S, B>(
self,
column_key: impl SourceRowsInput,
other_keys: I,
values: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn point_alpha_columns<I, S, B>( self, column_key: impl SourceRowsInput, other_keys: I, values: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Key alpha by logical source-column indices, not display labels or private field strings.
Sourcepub fn point_alpha_columns_from_data<I, S, B>(
self,
source: impl ArraySource,
column_key: impl SourceRowsInput,
other_keys: I,
values: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn point_alpha_columns_from_data<I, S, B>( self, source: impl ArraySource, column_key: impl SourceRowsInput, other_keys: I, values: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Bind generated-column alpha from an independent selector source.
Sourcepub fn point_alpha_columns_map<I, S, B>(
self,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_columns_map<I, S, B>( self, column_key: impl SourceRowsInput, other_keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric alpha on exact generated-column selectors.
Sourcepub fn point_alpha_columns_map_from_data<I, S, B>(
self,
source: impl ArraySource,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_columns_map_from_data<I, S, B>( self, source: impl ArraySource, column_key: impl SourceRowsInput, other_keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric generated-column alpha in an independent source.
Sourcepub fn point_alpha_columns_map_categories<I, S, B>(
self,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_columns_map_categories<I, S, B>( self, column_key: impl SourceRowsInput, other_keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical alpha on exact generated-column selectors.
Sourcepub fn point_alpha_columns_map_categories_from_data<I, S, B>(
self,
source: impl ArraySource,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn point_alpha_columns_map_categories_from_data<I, S, B>( self, source: impl ArraySource, column_key: impl SourceRowsInput, other_keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical generated-column alpha in an independent source.
Source§impl<K: LineAlpha> PlotAdapter<'_, K>
impl<K: LineAlpha> PlotAdapter<'_, K>
Sourcepub fn line_alpha(self, input: impl AlphaInput) -> Result<Self, AdapterError>
pub fn line_alpha(self, input: impl AlphaInput) -> Result<Self, AdapterError>
Bind observation coefficients or pass through a native encoding without reinterpretation.
Sourcepub fn line_alpha_cells(
self,
input: impl AlphaInput,
) -> Result<Self, AdapterError>
pub fn line_alpha_cells( self, input: impl AlphaInput, ) -> Result<Self, AdapterError>
Bind already-expanded coefficients without repeating source rows.
Sourcepub fn line_alpha_linear(
self,
input: impl NumericInput,
domain: (f64, f64),
range: (f64, f64),
) -> Result<Self, AdapterError>
pub fn line_alpha_linear( self, input: impl NumericInput, domain: (f64, f64), range: (f64, f64), ) -> Result<Self, AdapterError>
Materialize the native linear declaration on the bound numeric variable.
Sourcepub fn line_alpha_map(
self,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_map( self, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric row values once, preserving the native declaration through expansion.
Sourcepub fn line_alpha_map_categories(
self,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_map_categories( self, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical row values once before expansion.
Sourcepub fn line_alpha_cells_map(
self,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_cells_map( self, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map explicitly expanded numeric slots without row repetition.
Sourcepub fn line_alpha_cells_map_categories(
self,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_cells_map_categories( self, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map explicitly expanded categorical slots without row repetition.
Sourcepub fn line_alpha_single(
self,
input: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn line_alpha_single( self, input: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Explicitly broadcast exactly one bound alpha value.
Sourcepub fn line_alpha_single_map(
self,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_single_map( self, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map exactly one numeric member and explicitly broadcast its declaration.
Sourcepub fn line_alpha_single_map_categories(
self,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_single_map_categories( self, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map exactly one categorical member and explicitly broadcast its declaration.
Sourcepub fn line_alpha_keyed<I, S, B>(
self,
keys: I,
input: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn line_alpha_keyed<I, S, B>( self, keys: I, input: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Bind exact series/aggregate keys; observations are never implicitly reduced.
Sourcepub fn line_alpha_keyed_from_data<I, S, B>(
self,
source: impl ArraySource,
keys: I,
input: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn line_alpha_keyed_from_data<I, S, B>( self, source: impl ArraySource, keys: I, input: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Bind an independent selector source eagerly, retaining no borrow of it.
Sourcepub fn line_alpha_keyed_map<I, S, B>(
self,
keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_keyed_map<I, S, B>( self, keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric alpha for exact actual series/aggregate selectors.
Sourcepub fn line_alpha_keyed_map_from_data<I, S, B>(
self,
source: impl ArraySource,
keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_keyed_map_from_data<I, S, B>( self, source: impl ArraySource, keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric alpha in an independent selector source.
Sourcepub fn line_alpha_keyed_map_categories<I, S, B>(
self,
keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_keyed_map_categories<I, S, B>( self, keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical alpha for exact series/aggregate selectors.
Sourcepub fn line_alpha_keyed_map_categories_from_data<I, S, B>(
self,
source: impl ArraySource,
keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_keyed_map_categories_from_data<I, S, B>( self, source: impl ArraySource, keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical alpha in an independent selector source.
Sourcepub fn line_alpha_columns<I, S, B>(
self,
column_key: impl SourceRowsInput,
other_keys: I,
values: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn line_alpha_columns<I, S, B>( self, column_key: impl SourceRowsInput, other_keys: I, values: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Key alpha by logical source-column indices, not display labels or private field strings.
Sourcepub fn line_alpha_columns_from_data<I, S, B>(
self,
source: impl ArraySource,
column_key: impl SourceRowsInput,
other_keys: I,
values: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn line_alpha_columns_from_data<I, S, B>( self, source: impl ArraySource, column_key: impl SourceRowsInput, other_keys: I, values: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Bind generated-column alpha from an independent selector source.
Sourcepub fn line_alpha_columns_map<I, S, B>(
self,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_columns_map<I, S, B>( self, column_key: impl SourceRowsInput, other_keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric alpha on exact generated-column selectors.
Sourcepub fn line_alpha_columns_map_from_data<I, S, B>(
self,
source: impl ArraySource,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_columns_map_from_data<I, S, B>( self, source: impl ArraySource, column_key: impl SourceRowsInput, other_keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric generated-column alpha in an independent source.
Sourcepub fn line_alpha_columns_map_categories<I, S, B>(
self,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_columns_map_categories<I, S, B>( self, column_key: impl SourceRowsInput, other_keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical alpha on exact generated-column selectors.
Sourcepub fn line_alpha_columns_map_categories_from_data<I, S, B>(
self,
source: impl ArraySource,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn line_alpha_columns_map_categories_from_data<I, S, B>( self, source: impl ArraySource, column_key: impl SourceRowsInput, other_keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical generated-column alpha in an independent source.
Source§impl<K: FillAlpha> PlotAdapter<'_, K>
impl<K: FillAlpha> PlotAdapter<'_, K>
Sourcepub fn fill_alpha(self, input: impl AlphaInput) -> Result<Self, AdapterError>
pub fn fill_alpha(self, input: impl AlphaInput) -> Result<Self, AdapterError>
Bind observation coefficients or pass through a native encoding without reinterpretation.
Sourcepub fn fill_alpha_cells(
self,
input: impl AlphaInput,
) -> Result<Self, AdapterError>
pub fn fill_alpha_cells( self, input: impl AlphaInput, ) -> Result<Self, AdapterError>
Bind already-expanded coefficients without repeating source rows.
Sourcepub fn fill_alpha_linear(
self,
input: impl NumericInput,
domain: (f64, f64),
range: (f64, f64),
) -> Result<Self, AdapterError>
pub fn fill_alpha_linear( self, input: impl NumericInput, domain: (f64, f64), range: (f64, f64), ) -> Result<Self, AdapterError>
Materialize the native linear declaration on the bound numeric variable.
Sourcepub fn fill_alpha_map(
self,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_map( self, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric row values once, preserving the native declaration through expansion.
Sourcepub fn fill_alpha_map_categories(
self,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_map_categories( self, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical row values once before expansion.
Sourcepub fn fill_alpha_cells_map(
self,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_cells_map( self, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map explicitly expanded numeric slots without row repetition.
Sourcepub fn fill_alpha_cells_map_categories(
self,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_cells_map_categories( self, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map explicitly expanded categorical slots without row repetition.
Sourcepub fn fill_alpha_single(
self,
input: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn fill_alpha_single( self, input: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Explicitly broadcast exactly one bound alpha value.
Sourcepub fn fill_alpha_single_map(
self,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_single_map( self, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map exactly one numeric member and explicitly broadcast its declaration.
Sourcepub fn fill_alpha_single_map_categories(
self,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_single_map_categories( self, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map exactly one categorical member and explicitly broadcast its declaration.
Sourcepub fn fill_alpha_keyed<I, S, B>(
self,
keys: I,
input: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn fill_alpha_keyed<I, S, B>( self, keys: I, input: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Bind exact series/aggregate keys; observations are never implicitly reduced.
Sourcepub fn fill_alpha_keyed_from_data<I, S, B>(
self,
source: impl ArraySource,
keys: I,
input: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn fill_alpha_keyed_from_data<I, S, B>( self, source: impl ArraySource, keys: I, input: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Bind an independent selector source eagerly, retaining no borrow of it.
Sourcepub fn fill_alpha_keyed_map<I, S, B>(
self,
keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_keyed_map<I, S, B>( self, keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric alpha for exact actual series/aggregate selectors.
Sourcepub fn fill_alpha_keyed_map_from_data<I, S, B>(
self,
source: impl ArraySource,
keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_keyed_map_from_data<I, S, B>( self, source: impl ArraySource, keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric alpha in an independent selector source.
Sourcepub fn fill_alpha_keyed_map_categories<I, S, B>(
self,
keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_keyed_map_categories<I, S, B>( self, keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical alpha for exact series/aggregate selectors.
Sourcepub fn fill_alpha_keyed_map_categories_from_data<I, S, B>(
self,
source: impl ArraySource,
keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_keyed_map_categories_from_data<I, S, B>( self, source: impl ArraySource, keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical alpha in an independent selector source.
Sourcepub fn fill_alpha_columns<I, S, B>(
self,
column_key: impl SourceRowsInput,
other_keys: I,
values: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn fill_alpha_columns<I, S, B>( self, column_key: impl SourceRowsInput, other_keys: I, values: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Key alpha by logical source-column indices, not display labels or private field strings.
Sourcepub fn fill_alpha_columns_from_data<I, S, B>(
self,
source: impl ArraySource,
column_key: impl SourceRowsInput,
other_keys: I,
values: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn fill_alpha_columns_from_data<I, S, B>( self, source: impl ArraySource, column_key: impl SourceRowsInput, other_keys: I, values: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Bind generated-column alpha from an independent selector source.
Sourcepub fn fill_alpha_columns_map<I, S, B>(
self,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_columns_map<I, S, B>( self, column_key: impl SourceRowsInput, other_keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric alpha on exact generated-column selectors.
Sourcepub fn fill_alpha_columns_map_from_data<I, S, B>(
self,
source: impl ArraySource,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_columns_map_from_data<I, S, B>( self, source: impl ArraySource, column_key: impl SourceRowsInput, other_keys: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map numeric generated-column alpha in an independent source.
Sourcepub fn fill_alpha_columns_map_categories<I, S, B>(
self,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_columns_map_categories<I, S, B>( self, column_key: impl SourceRowsInput, other_keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical alpha on exact generated-column selectors.
Sourcepub fn fill_alpha_columns_map_categories_from_data<I, S, B>(
self,
source: impl ArraySource,
column_key: impl SourceRowsInput,
other_keys: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_columns_map_categories_from_data<I, S, B>( self, source: impl ArraySource, column_key: impl SourceRowsInput, other_keys: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map categorical generated-column alpha in an independent source.
Source§impl PlotAdapter<'_, Histogram>
impl PlotAdapter<'_, Histogram>
Sourcepub fn fill_alpha_bins<I, S, B>(
self,
lower: impl NumericInput,
upper: impl NumericInput,
facets: I,
values: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn fill_alpha_bins<I, S, B>( self, lower: impl NumericInput, upper: impl NumericInput, facets: I, values: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Bind exact histogram bin intervals and optional facet keys, without sample reduction.
Sourcepub fn fill_alpha_bins_from_data<I, S, B>(
self,
source: impl ArraySource,
lower: impl NumericInput,
upper: impl NumericInput,
facets: I,
values: impl AlphaValuesInput,
) -> Result<Self, AdapterError>
pub fn fill_alpha_bins_from_data<I, S, B>( self, source: impl ArraySource, lower: impl NumericInput, upper: impl NumericInput, facets: I, values: impl AlphaValuesInput, ) -> Result<Self, AdapterError>
Bind explicit bin alpha in an independent result source, retaining no borrow.
Source§impl PlotAdapter<'_, Histogram>
impl PlotAdapter<'_, Histogram>
Sourcepub fn fill_alpha_bins_map<I, S, B>(
self,
lower: impl NumericInput,
upper: impl NumericInput,
facets: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_bins_map<I, S, B>( self, lower: impl NumericInput, upper: impl NumericInput, facets: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map alpha for explicit native bin intervals, never sample rows.
Sourcepub fn fill_alpha_bins_map_from_data<I, S, B>(
self,
source: impl ArraySource,
lower: impl NumericInput,
upper: impl NumericInput,
facets: I,
input: impl NumericInput,
mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_bins_map_from_data<I, S, B>( self, source: impl ArraySource, lower: impl NumericInput, upper: impl NumericInput, facets: I, input: impl NumericInput, mapper: impl FnOnce(NumericValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Materialize an explicit bin mapping in an independent result source.
Source§impl PlotAdapter<'_, Histogram>
impl PlotAdapter<'_, Histogram>
Sourcepub fn fill_alpha_bins_map_categories<I, S, B>(
self,
lower: impl NumericInput,
upper: impl NumericInput,
facets: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_bins_map_categories<I, S, B>( self, lower: impl NumericInput, upper: impl NumericInput, facets: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Map alpha for explicit native bin intervals, never sample rows.
Sourcepub fn fill_alpha_bins_map_categories_from_data<I, S, B>(
self,
source: impl ArraySource,
lower: impl NumericInput,
upper: impl NumericInput,
facets: I,
input: impl CategoryInput,
mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>,
) -> Result<Self, AdapterError>
pub fn fill_alpha_bins_map_categories_from_data<I, S, B>( self, source: impl ArraySource, lower: impl NumericInput, upper: impl NumericInput, facets: I, input: impl CategoryInput, mapper: impl FnOnce(CategoryValues) -> Result<AlphaValues>, ) -> Result<Self, AdapterError>
Materialize an explicit bin mapping in an independent result source.
Source§impl<'source> PlotAdapter<'source, Regression>
impl<'source> PlotAdapter<'source, Regression>
Sourcepub fn new(
x: impl NumericInput,
y: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn new( x: impl NumericInput, y: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Regression new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
x: impl NumericInput,
y: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, x: impl NumericInput, y: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Regression new mode.
Source§impl<'source> PlotAdapter<'source, Marginal>
impl<'source> PlotAdapter<'source, Marginal>
Sourcepub fn new(
x: impl NumericInput,
y: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn new( x: impl NumericInput, y: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Marginal new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
x: impl NumericInput,
y: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, x: impl NumericInput, y: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Marginal new mode.
Source§impl<'source> PlotAdapter<'source, Histogram>
impl<'source> PlotAdapter<'source, Histogram>
Sourcepub fn new(samples: impl NumericInput) -> Result<Self, AdapterError>
pub fn new(samples: impl NumericInput) -> Result<Self, AdapterError>
Bind direct inputs for native Histogram new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
samples: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, samples: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Histogram new mode.
Source§impl<'source> PlotAdapter<'source, Density>
impl<'source> PlotAdapter<'source, Density>
Sourcepub fn new(value: impl NumericInput) -> Result<Self, AdapterError>
pub fn new(value: impl NumericInput) -> Result<Self, AdapterError>
Bind direct inputs for native Density new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
value: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, value: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Density new mode.
Source§impl<'source> PlotAdapter<'source, Qq>
impl<'source> PlotAdapter<'source, Qq>
Sourcepub fn new(value: impl NumericInput) -> Result<Self, AdapterError>
pub fn new(value: impl NumericInput) -> Result<Self, AdapterError>
Bind direct inputs for native Qq new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
value: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, value: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Qq new mode.
Source§impl<'source> PlotAdapter<'source, PointInterval>
impl<'source> PlotAdapter<'source, PointInterval>
Sourcepub fn new(
category: impl CategoryInput,
estimate: impl NumericInput,
lower: impl NumericInput,
upper: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn new( category: impl CategoryInput, estimate: impl NumericInput, lower: impl NumericInput, upper: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native PointInterval new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
estimate: impl NumericInput,
lower: impl NumericInput,
upper: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, category: impl CategoryInput, estimate: impl NumericInput, lower: impl NumericInput, upper: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native PointInterval new mode.
Source§impl<'source> PlotAdapter<'source, Trajectory>
impl<'source> PlotAdapter<'source, Trajectory>
Sourcepub fn new(
x: impl AxisInput,
y: impl NumericInput,
group: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn new( x: impl AxisInput, y: impl NumericInput, group: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Trajectory new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
x: impl AxisInput,
y: impl NumericInput,
group: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, x: impl AxisInput, y: impl NumericInput, group: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Trajectory new mode.
Source§impl<'source> PlotAdapter<'source, Trajectory>
impl<'source> PlotAdapter<'source, Trajectory>
Sourcepub fn new_numeric_x(
x: impl NumericInput,
y: impl NumericInput,
group: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn new_numeric_x( x: impl NumericInput, y: impl NumericInput, group: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Trajectory new_numeric_x mode.
Sourcepub fn from_data_numeric_x(
source: impl ArraySource + 'source,
x: impl NumericInput,
y: impl NumericInput,
group: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn from_data_numeric_x( source: impl ArraySource + 'source, x: impl NumericInput, y: impl NumericInput, group: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Trajectory new_numeric_x mode.
Source§impl<'source> PlotAdapter<'source, Trajectory>
impl<'source> PlotAdapter<'source, Trajectory>
Sourcepub fn new_categorical_x(
x: impl CategoryInput,
y: impl NumericInput,
group: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn new_categorical_x( x: impl CategoryInput, y: impl NumericInput, group: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Trajectory new_categorical_x mode.
Sourcepub fn from_data_categorical_x(
source: impl ArraySource + 'source,
x: impl CategoryInput,
y: impl NumericInput,
group: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn from_data_categorical_x( source: impl ArraySource + 'source, x: impl CategoryInput, y: impl NumericInput, group: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Trajectory new_categorical_x mode.
Source§impl<'source> PlotAdapter<'source, LinePath>
impl<'source> PlotAdapter<'source, LinePath>
Sourcepub fn new(
x: impl NumericInput,
y: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn new( x: impl NumericInput, y: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native LinePath new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
x: impl NumericInput,
y: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, x: impl NumericInput, y: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native LinePath new mode.
Source§impl<'source> PlotAdapter<'source, LinePath>
impl<'source> PlotAdapter<'source, LinePath>
Sourcepub fn grouped(
x: impl NumericInput,
y: impl NumericInput,
group: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn grouped( x: impl NumericInput, y: impl NumericInput, group: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native LinePath grouped mode.
Sourcepub fn grouped_from_data(
source: impl ArraySource + 'source,
x: impl NumericInput,
y: impl NumericInput,
group: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn grouped_from_data( source: impl ArraySource + 'source, x: impl NumericInput, y: impl NumericInput, group: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native LinePath grouped mode.
Source§impl<'source> PlotAdapter<'source, Interaction>
impl<'source> PlotAdapter<'source, Interaction>
Sourcepub fn new(
condition: impl CategoryInput,
estimate: impl NumericInput,
group: impl CategoryInput,
lower: impl NumericInput,
upper: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn new( condition: impl CategoryInput, estimate: impl NumericInput, group: impl CategoryInput, lower: impl NumericInput, upper: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Interaction new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
condition: impl CategoryInput,
estimate: impl NumericInput,
group: impl CategoryInput,
lower: impl NumericInput,
upper: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, condition: impl CategoryInput, estimate: impl NumericInput, group: impl CategoryInput, lower: impl NumericInput, upper: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Interaction new mode.
Source§impl<'source> PlotAdapter<'source, Coefficient>
impl<'source> PlotAdapter<'source, Coefficient>
Sourcepub fn new(
term: impl CategoryInput,
estimate: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn new( term: impl CategoryInput, estimate: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Coefficient new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
term: impl CategoryInput,
estimate: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, term: impl CategoryInput, estimate: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Coefficient new mode.
Source§impl<'source> PlotAdapter<'source, Coefficient>
impl<'source> PlotAdapter<'source, Coefficient>
Sourcepub fn with_intervals(
term: impl CategoryInput,
estimate: impl NumericInput,
lower: impl NumericInput,
upper: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn with_intervals( term: impl CategoryInput, estimate: impl NumericInput, lower: impl NumericInput, upper: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Coefficient with_intervals mode.
Sourcepub fn with_intervals_from_data(
source: impl ArraySource + 'source,
term: impl CategoryInput,
estimate: impl NumericInput,
lower: impl NumericInput,
upper: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn with_intervals_from_data( source: impl ArraySource + 'source, term: impl CategoryInput, estimate: impl NumericInput, lower: impl NumericInput, upper: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Coefficient with_intervals mode.
Source§impl<'source> PlotAdapter<'source, Forest>
impl<'source> PlotAdapter<'source, Forest>
Sourcepub fn new(
term: impl CategoryInput,
estimate: impl NumericInput,
lower: impl NumericInput,
upper: impl NumericInput,
reference: f64,
) -> Result<Self, AdapterError>
pub fn new( term: impl CategoryInput, estimate: impl NumericInput, lower: impl NumericInput, upper: impl NumericInput, reference: f64, ) -> Result<Self, AdapterError>
Bind direct inputs for native Forest new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
term: impl CategoryInput,
estimate: impl NumericInput,
lower: impl NumericInput,
upper: impl NumericInput,
reference: f64,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, term: impl CategoryInput, estimate: impl NumericInput, lower: impl NumericInput, upper: impl NumericInput, reference: f64, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Forest new mode.
Source§impl<'source> PlotAdapter<'source, Dumbbell>
impl<'source> PlotAdapter<'source, Dumbbell>
Sourcepub fn new(
category: impl CategoryInput,
left: impl NumericInput,
right: impl NumericInput,
endpoints: DumbbellEndpoints,
) -> Result<Self, AdapterError>
pub fn new( category: impl CategoryInput, left: impl NumericInput, right: impl NumericInput, endpoints: DumbbellEndpoints, ) -> Result<Self, AdapterError>
Bind direct inputs for native Dumbbell new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
left: impl NumericInput,
right: impl NumericInput,
endpoints: DumbbellEndpoints,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, category: impl CategoryInput, left: impl NumericInput, right: impl NumericInput, endpoints: DumbbellEndpoints, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Dumbbell new mode.
Source§impl<'source> PlotAdapter<'source, Heatmap>
impl<'source> PlotAdapter<'source, Heatmap>
Sourcepub fn records(
x: impl CategoryInput,
y: impl CategoryInput,
fill: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn records( x: impl CategoryInput, y: impl CategoryInput, fill: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Heatmap records mode.
Sourcepub fn records_from_data(
source: impl ArraySource + 'source,
x: impl CategoryInput,
y: impl CategoryInput,
fill: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn records_from_data( source: impl ArraySource + 'source, x: impl CategoryInput, y: impl CategoryInput, fill: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Heatmap records mode.
Source§impl<'source> PlotAdapter<'source, StackedBar>
impl<'source> PlotAdapter<'source, StackedBar>
Sourcepub fn new(
category: impl CategoryInput,
value: impl NumericInput,
series: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn new( category: impl CategoryInput, value: impl NumericInput, series: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native StackedBar new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
value: impl NumericInput,
series: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, category: impl CategoryInput, value: impl NumericInput, series: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native StackedBar new mode.
Source§impl<'source> PlotAdapter<'source, StackedHorizontalBar>
impl<'source> PlotAdapter<'source, StackedHorizontalBar>
Sourcepub fn new(
category: impl CategoryInput,
value: impl NumericInput,
series: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn new( category: impl CategoryInput, value: impl NumericInput, series: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native StackedHorizontalBar new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
value: impl NumericInput,
series: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, category: impl CategoryInput, value: impl NumericInput, series: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native StackedHorizontalBar new mode.
Source§impl<'source> PlotAdapter<'source, Beeswarm>
impl<'source> PlotAdapter<'source, Beeswarm>
Sourcepub fn new(
category: impl CategoryInput,
value: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn new( category: impl CategoryInput, value: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Beeswarm new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
value: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, category: impl CategoryInput, value: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Beeswarm new mode.
Source§impl<'source> PlotAdapter<'source, Beeswarm>
impl<'source> PlotAdapter<'source, Beeswarm>
Sourcepub fn colored(
category: impl CategoryInput,
value: impl NumericInput,
color: impl ColorSourceInput,
) -> Result<Self, AdapterError>
pub fn colored( category: impl CategoryInput, value: impl NumericInput, color: impl ColorSourceInput, ) -> Result<Self, AdapterError>
Bind direct observations with a fixed or continuously mapped color.
Sourcepub fn colored_from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
value: impl NumericInput,
color: impl ColorSourceInput,
) -> Result<Self, AdapterError>
pub fn colored_from_data( source: impl ArraySource + 'source, category: impl CategoryInput, value: impl NumericInput, color: impl ColorSourceInput, ) -> Result<Self, AdapterError>
Bind source columns or direct values with a fixed or mapped color.
Source§impl<'source> PlotAdapter<'source, Waterfall>
impl<'source> PlotAdapter<'source, Waterfall>
Sourcepub fn new(
category: impl CategoryInput,
delta: impl NumericInput,
base: f64,
) -> Result<Self, AdapterError>
pub fn new( category: impl CategoryInput, delta: impl NumericInput, base: f64, ) -> Result<Self, AdapterError>
Bind direct inputs for native Waterfall new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
delta: impl NumericInput,
base: f64,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, category: impl CategoryInput, delta: impl NumericInput, base: f64, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Waterfall new mode.
Source§impl<'source> PlotAdapter<'source, Bar>
impl<'source> PlotAdapter<'source, Bar>
Sourcepub fn new(
category: impl CategoryInput,
samples: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn new( category: impl CategoryInput, samples: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Bar new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
samples: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, category: impl CategoryInput, samples: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Bar new mode.
Source§impl<'source> PlotAdapter<'source, Bar>
impl<'source> PlotAdapter<'source, Bar>
Sourcepub fn with_error_bar(
category: impl CategoryInput,
samples: impl NumericInput,
policy: impl Into<ErrorBar>,
) -> Result<Self, AdapterError>
pub fn with_error_bar( category: impl CategoryInput, samples: impl NumericInput, policy: impl Into<ErrorBar>, ) -> Result<Self, AdapterError>
Bind direct inputs for native Bar with_error_bar mode.
Sourcepub fn with_error_bar_from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
samples: impl NumericInput,
policy: impl Into<ErrorBar>,
) -> Result<Self, AdapterError>
pub fn with_error_bar_from_data( source: impl ArraySource + 'source, category: impl CategoryInput, samples: impl NumericInput, policy: impl Into<ErrorBar>, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Bar with_error_bar mode.
Source§impl<'source> PlotAdapter<'source, Bar>
impl<'source> PlotAdapter<'source, Bar>
Sourcepub fn estimates(
category: impl CategoryInput,
estimate: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn estimates( category: impl CategoryInput, estimate: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Bar estimates mode.
Sourcepub fn estimates_from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
estimate: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn estimates_from_data( source: impl ArraySource + 'source, category: impl CategoryInput, estimate: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Bar estimates mode.
Source§impl<'source> PlotAdapter<'source, Bar>
impl<'source> PlotAdapter<'source, Bar>
Sourcepub fn estimates_with_error_bars(
category: impl CategoryInput,
estimate: impl NumericInput,
lower: impl NumericInput,
upper: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn estimates_with_error_bars( category: impl CategoryInput, estimate: impl NumericInput, lower: impl NumericInput, upper: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native Bar estimates_with_error_bars mode.
Sourcepub fn estimates_with_error_bars_from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
estimate: impl NumericInput,
lower: impl NumericInput,
upper: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn estimates_with_error_bars_from_data( source: impl ArraySource + 'source, category: impl CategoryInput, estimate: impl NumericInput, lower: impl NumericInput, upper: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native Bar estimates_with_error_bars mode.
Source§impl<'source> PlotAdapter<'source, HorizontalBar>
impl<'source> PlotAdapter<'source, HorizontalBar>
Sourcepub fn new(
category: impl CategoryInput,
samples: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn new( category: impl CategoryInput, samples: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native HorizontalBar new mode.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
samples: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, category: impl CategoryInput, samples: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native HorizontalBar new mode.
Source§impl<'source> PlotAdapter<'source, HorizontalBar>
impl<'source> PlotAdapter<'source, HorizontalBar>
Sourcepub fn with_error_bar(
category: impl CategoryInput,
samples: impl NumericInput,
policy: impl Into<ErrorBar>,
) -> Result<Self, AdapterError>
pub fn with_error_bar( category: impl CategoryInput, samples: impl NumericInput, policy: impl Into<ErrorBar>, ) -> Result<Self, AdapterError>
Bind direct inputs for native HorizontalBar with_error_bar mode.
Sourcepub fn with_error_bar_from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
samples: impl NumericInput,
policy: impl Into<ErrorBar>,
) -> Result<Self, AdapterError>
pub fn with_error_bar_from_data( source: impl ArraySource + 'source, category: impl CategoryInput, samples: impl NumericInput, policy: impl Into<ErrorBar>, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native HorizontalBar with_error_bar mode.
Source§impl<'source> PlotAdapter<'source, HorizontalBar>
impl<'source> PlotAdapter<'source, HorizontalBar>
Sourcepub fn estimates(
category: impl CategoryInput,
estimate: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn estimates( category: impl CategoryInput, estimate: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native HorizontalBar estimates mode.
Sourcepub fn estimates_from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
estimate: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn estimates_from_data( source: impl ArraySource + 'source, category: impl CategoryInput, estimate: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native HorizontalBar estimates mode.
Source§impl<'source> PlotAdapter<'source, HorizontalBar>
impl<'source> PlotAdapter<'source, HorizontalBar>
Sourcepub fn estimates_with_error_bars(
category: impl CategoryInput,
estimate: impl NumericInput,
lower: impl NumericInput,
upper: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn estimates_with_error_bars( category: impl CategoryInput, estimate: impl NumericInput, lower: impl NumericInput, upper: impl NumericInput, ) -> Result<Self, AdapterError>
Bind direct inputs for native HorizontalBar estimates_with_error_bars mode.
Sourcepub fn estimates_with_error_bars_from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
estimate: impl NumericInput,
lower: impl NumericInput,
upper: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn estimates_with_error_bars_from_data( source: impl ArraySource + 'source, category: impl CategoryInput, estimate: impl NumericInput, lower: impl NumericInput, upper: impl NumericInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct inputs for native HorizontalBar estimates_with_error_bars mode.
Source§impl PlotAdapter<'_, Line>
impl PlotAdapter<'_, Line>
Sourcepub fn band(
self,
lower: impl NumericSeriesInput,
upper: impl NumericSeriesInput,
) -> Result<Self, AdapterError>
pub fn band( self, lower: impl NumericSeriesInput, upper: impl NumericSeriesInput, ) -> Result<Self, AdapterError>
Bind bounds with exactly the line’s single-variable or selected-column shape.
Source§impl<'source> PlotAdapter<'source, Matrix>
impl<'source> PlotAdapter<'source, Matrix>
Sourcepub fn new(variables: impl ColumnsInput) -> Result<Self, AdapterError>
pub fn new(variables: impl ColumnsInput) -> Result<Self, AdapterError>
Use direct matrix columns as variables and rows as observations.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
columns: impl ColumnsInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, columns: impl ColumnsInput, ) -> Result<Self, AdapterError>
Select ordered logical columns, or .. for every column.
Sourcepub fn numeric_from_data(
source: impl ArraySource + 'source,
) -> Result<Self, AdapterError>
pub fn numeric_from_data( source: impl ArraySource + 'source, ) -> Result<Self, AdapterError>
Explicit numeric discovery on a homogeneous source uses all columns.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn title(self, text: impl Into<Text>) -> Self
pub fn title(self, text: impl Into<Text>) -> Self
Forward native crate::Plot::title configuration.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn subtitle(self, text: impl Into<Text>) -> Self
pub fn subtitle(self, text: impl Into<Text>) -> Self
Forward native crate::Plot::subtitle configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn caption(self, text: impl Into<Text>) -> Self
pub fn caption(self, text: impl Into<Text>) -> Self
Forward native crate::Plot::caption configuration.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn x_label(self, text: impl Into<Text>) -> Self
pub fn x_label(self, text: impl Into<Text>) -> Self
Forward native crate::Plot::x_label configuration.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn y_label(self, text: impl Into<Text>) -> Self
pub fn y_label(self, text: impl Into<Text>) -> Self
Forward native crate::Plot::y_label configuration.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_title_style(self) -> Self
pub fn clear_title_style(self) -> Self
Forward native crate::Plot::clear_title_style configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_title_layout(self) -> Self
pub fn clear_title_layout(self) -> Self
Forward native crate::Plot::clear_title_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_subtitle_style(self) -> Self
pub fn clear_subtitle_style(self) -> Self
Forward native crate::Plot::clear_subtitle_style configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_subtitle_layout(self) -> Self
pub fn clear_subtitle_layout(self) -> Self
Forward native crate::Plot::clear_subtitle_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_caption_style(self) -> Self
pub fn clear_caption_style(self) -> Self
Forward native crate::Plot::clear_caption_style configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_caption_layout(self) -> Self
pub fn clear_caption_layout(self) -> Self
Forward native crate::Plot::clear_caption_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_x_label_style(self) -> Self
pub fn clear_x_label_style(self) -> Self
Forward native crate::Plot::clear_x_label_style configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_x_label_layout(self) -> Self
pub fn clear_x_label_layout(self) -> Self
Forward native crate::Plot::clear_x_label_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_y_label_style(self) -> Self
pub fn clear_y_label_style(self) -> Self
Forward native crate::Plot::clear_y_label_style configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_y_label_layout(self) -> Self
pub fn clear_y_label_layout(self) -> Self
Forward native crate::Plot::clear_y_label_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_color_label_style(self) -> Selfwhere
K: ContinuousColor,
pub fn clear_color_label_style(self) -> Selfwhere
K: ContinuousColor,
Forward native crate::Plot::clear_color_label_style configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn clear_color_label_layout(self) -> Selfwhere
K: ContinuousColor,
pub fn clear_color_label_layout(self) -> Selfwhere
K: ContinuousColor,
Forward native crate::Plot::clear_color_label_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn title_alignment(self, alignment: TextAlignment) -> Self
pub fn title_alignment(self, alignment: TextAlignment) -> Self
Forward native crate::Plot::title_alignment configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn subtitle_alignment(self, alignment: TextAlignment) -> Self
pub fn subtitle_alignment(self, alignment: TextAlignment) -> Self
Forward native crate::Plot::subtitle_alignment configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn default_theme(self, theme: impl Into<Option<Theme>>) -> Self
pub fn default_theme(self, theme: impl Into<Option<Theme>>) -> Self
Forward native crate::Plot::default_theme configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn width(self, width: u32) -> Self
pub fn width(self, width: u32) -> Self
Forward native crate::Plot::width configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn max_width(self, maximum: u32) -> Self
pub fn max_width(self, maximum: u32) -> Self
Forward native crate::Plot::max_width configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn size(self, width: u32, height: u32) -> Self
pub fn size(self, width: u32, height: u32) -> Self
Forward native crate::Plot::size configuration.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn color_label(self, label: impl Into<Text>) -> Selfwhere
K: ContinuousColor,
pub fn color_label(self, label: impl Into<Text>) -> Selfwhere
K: ContinuousColor,
Forward native crate::Plot::color_label configuration.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn color_label_format(self, format: NumericFormat) -> Selfwhere
K: ContinuousColor,
pub fn color_label_format(self, format: NumericFormat) -> Selfwhere
K: ContinuousColor,
Forward native crate::Plot::color_label_format configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn heatmap_null_row_annotation(
self,
annotation: HeatmapNullRowAnnotation,
) -> Selfwhere
K: HeatmapOptions,
pub fn heatmap_null_row_annotation(
self,
annotation: HeatmapNullRowAnnotation,
) -> Selfwhere
K: HeatmapOptions,
Forward native crate::Plot::heatmap_null_row_annotation configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn estimate_labels(self, format: NumericFormat) -> Selfwhere
K: CoefficientOptions,
pub fn estimate_labels(self, format: NumericFormat) -> Selfwhere
K: CoefficientOptions,
Forward native crate::Plot::estimate_labels configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn significance_mark_style(self, style: SignificanceMarkStyle) -> Selfwhere
K: SignificanceStyle,
pub fn significance_mark_style(self, style: SignificanceMarkStyle) -> Selfwhere
K: SignificanceStyle,
Forward native crate::Plot::significance_mark_style configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn text_annotation(self, annotation: PlotTextAnnotation) -> Selfwhere
K: TextAnnotation,
pub fn text_annotation(self, annotation: PlotTextAnnotation) -> Selfwhere
K: TextAnnotation,
Forward native crate::Plot::text_annotation configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn x_category_labels(self, selection: CategoryLabelSelection) -> Selfwhere
K: CategoricalX,
pub fn x_category_labels(self, selection: CategoryLabelSelection) -> Selfwhere
K: CategoricalX,
Forward native crate::Plot::x_category_labels configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn y_category_labels(self, selection: CategoryLabelSelection) -> Selfwhere
K: CategoricalY,
pub fn y_category_labels(self, selection: CategoryLabelSelection) -> Selfwhere
K: CategoricalY,
Forward native crate::Plot::y_category_labels configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn category_order(self, order: impl Into<CategoryOrder>) -> Selfwhere
K: CategoryOrder,
pub fn category_order(self, order: impl Into<CategoryOrder>) -> Selfwhere
K: CategoryOrder,
Forward native crate::Plot::category_order configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn x_category_order(self, order: impl Into<CategoryOrder>) -> Selfwhere
K: HeatmapOptions,
pub fn x_category_order(self, order: impl Into<CategoryOrder>) -> Selfwhere
K: HeatmapOptions,
Forward native crate::Plot::x_category_order configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn y_category_order(self, order: impl Into<CategoryOrder>) -> Selfwhere
K: HeatmapOptions,
pub fn y_category_order(self, order: impl Into<CategoryOrder>) -> Selfwhere
K: HeatmapOptions,
Forward native crate::Plot::y_category_order configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn x_tick_generation(self, generation: TickGeneration) -> Selfwhere
K: NumericX,
pub fn x_tick_generation(self, generation: TickGeneration) -> Selfwhere
K: NumericX,
Forward native crate::Plot::x_tick_generation configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn y_tick_generation(self, generation: TickGeneration) -> Selfwhere
K: NumericY,
pub fn y_tick_generation(self, generation: TickGeneration) -> Selfwhere
K: NumericY,
Forward native crate::Plot::y_tick_generation configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn x_tick_format(self, format: NumericFormat) -> Selfwhere
K: NumericX,
pub fn x_tick_format(self, format: NumericFormat) -> Selfwhere
K: NumericX,
Forward native crate::Plot::x_tick_format configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn y_tick_format(self, format: NumericFormat) -> Selfwhere
K: NumericY,
pub fn y_tick_format(self, format: NumericFormat) -> Selfwhere
K: NumericY,
Forward native crate::Plot::y_tick_format configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn guide(self, guide: GuideSpec) -> Selfwhere
K: Guides,
pub fn guide(self, guide: GuideSpec) -> Selfwhere
K: Guides,
Forward native crate::Plot::guide configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn categorical_color_scale(self, scale: CategoricalColorScale) -> Selfwhere
K: CategoricalScale,
pub fn categorical_color_scale(self, scale: CategoricalColorScale) -> Selfwhere
K: CategoricalScale,
Forward native crate::Plot::categorical_color_scale configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn continuous_color_scale(self, scale: ContinuousColorScale) -> Selfwhere
K: ContinuousColor,
pub fn continuous_color_scale(self, scale: ContinuousColorScale) -> Selfwhere
K: ContinuousColor,
Forward native crate::Plot::continuous_color_scale configuration.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn color_by_sign(self) -> Selfwhere
K: SignedBars,
pub fn color_by_sign(self) -> Selfwhere
K: SignedBars,
Forward native crate::Plot::color_by_sign configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn zero_line(self) -> Selfwhere
K: ZeroLine,
pub fn zero_line(self) -> Selfwhere
K: ZeroLine,
Forward native crate::Plot::zero_line configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn hide_point_outline(self) -> Selfwhere
K: PointOutline,
pub fn hide_point_outline(self) -> Selfwhere
K: PointOutline,
Forward native crate::Plot::hide_point_outline configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn show_markers(self, visible: bool) -> Selfwhere
K: Markers,
pub fn show_markers(self, visible: bool) -> Selfwhere
K: Markers,
Forward native crate::Plot::show_markers configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn legend(self, policy: LegendPolicy) -> Selfwhere
K: Legend,
pub fn legend(self, policy: LegendPolicy) -> Selfwhere
K: Legend,
Forward native crate::Plot::legend configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn legend_composition(self, composition: LegendComposition) -> Selfwhere
K: Legend,
pub fn legend_composition(self, composition: LegendComposition) -> Selfwhere
K: Legend,
Forward native crate::Plot::legend_composition configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn raw_overlay(self, overlay: RawOverlay) -> Selfwhere
K: RawOverlay,
pub fn raw_overlay(self, overlay: RawOverlay) -> Selfwhere
K: RawOverlay,
Forward native crate::Plot::raw_overlay configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn estimate_status(
self,
statuses: impl IntoIterator<Item = EstimateStatus>,
) -> Selfwhere
K: EstimateStatus,
pub fn estimate_status(
self,
statuses: impl IntoIterator<Item = EstimateStatus>,
) -> Selfwhere
K: EstimateStatus,
Forward native crate::Plot::estimate_status configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn x_tick_text_layout(self, layout: TextLayout) -> Selfwhere
K: XAxisText,
pub fn x_tick_text_layout(self, layout: TextLayout) -> Selfwhere
K: XAxisText,
Forward native crate::Plot::x_tick_text_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn y_tick_text_layout(self, layout: TextLayout) -> Selfwhere
K: YAxisText,
pub fn y_tick_text_layout(self, layout: TextLayout) -> Selfwhere
K: YAxisText,
Forward native crate::Plot::y_tick_text_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn facet_row_text_layout(self, layout: TextLayout) -> Selfwhere
K: Facet,
pub fn facet_row_text_layout(self, layout: TextLayout) -> Selfwhere
K: Facet,
Forward native crate::Plot::facet_row_text_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn facet_column_text_layout(self, layout: TextLayout) -> Selfwhere
K: Facet,
pub fn facet_column_text_layout(self, layout: TextLayout) -> Selfwhere
K: Facet,
Forward native crate::Plot::facet_column_text_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn estimate_detail_text_layout(self, layout: TextLayout) -> Selfwhere
K: EstimateDetailText,
pub fn estimate_detail_text_layout(self, layout: TextLayout) -> Selfwhere
K: EstimateDetailText,
Forward native crate::Plot::estimate_detail_text_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn significance_text_layout(self, layout: TextLayout) -> Selfwhere
K: SignificanceStyle,
pub fn significance_text_layout(self, layout: TextLayout) -> Selfwhere
K: SignificanceStyle,
Forward native crate::Plot::significance_text_layout configuration.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn guide_text_layout(self, role: GuideTextRole, layout: TextLayout) -> Selfwhere
K: Legend,
pub fn guide_text_layout(self, role: GuideTextRole, layout: TextLayout) -> Selfwhere
K: Legend,
Forward native crate::Plot::guide_text_layout configuration.
Source§impl PlotAdapter<'_, Heatmap>
impl PlotAdapter<'_, Heatmap>
Sourcepub fn layout(self, layout: HeatmapLayout) -> Self
pub fn layout(self, layout: HeatmapLayout) -> Self
Forward native Heatmap layout configuration.
Source§impl PlotAdapter<'_, Heatmap>
impl PlotAdapter<'_, Heatmap>
Sourcepub fn annotations(self, annotations: HeatmapAnnotations) -> Self
pub fn annotations(self, annotations: HeatmapAnnotations) -> Self
Forward native Heatmap annotations configuration.
Source§impl PlotAdapter<'_, Heatmap>
impl PlotAdapter<'_, Heatmap>
Sourcepub fn value_text_layout(self, layout: TextLayout) -> Self
pub fn value_text_layout(self, layout: TextLayout) -> Self
Forward native Heatmap value_text_layout configuration.
Source§impl PlotAdapter<'_, Heatmap>
impl PlotAdapter<'_, Heatmap>
Sourcepub fn null_row_text_layout(self, layout: TextLayout) -> Self
pub fn null_row_text_layout(self, layout: TextLayout) -> Self
Forward native Heatmap null_row_text_layout configuration.
Source§impl PlotAdapter<'_, Forest>
impl PlotAdapter<'_, Forest>
Source§impl PlotAdapter<'_, Bar>
impl PlotAdapter<'_, Bar>
Sourcepub fn spacing(self, spacing: BarSpacing) -> Self
pub fn spacing(self, spacing: BarSpacing) -> Self
Forward native Bar spacing configuration.
Source§impl PlotAdapter<'_, HorizontalBar>
impl PlotAdapter<'_, HorizontalBar>
Sourcepub fn spacing(self, spacing: BarSpacing) -> Self
pub fn spacing(self, spacing: BarSpacing) -> Self
Forward native HorizontalBar spacing configuration.
Source§impl PlotAdapter<'_, Histogram>
impl PlotAdapter<'_, Histogram>
Sourcepub fn bins(self, bins: HistogramBins) -> Self
pub fn bins(self, bins: HistogramBins) -> Self
Forward native Histogram bins configuration.
Source§impl PlotAdapter<'_, Histogram>
impl PlotAdapter<'_, Histogram>
Sourcepub fn stat(self, stat: HistogramStat) -> Self
pub fn stat(self, stat: HistogramStat) -> Self
Forward native Histogram stat configuration.
Source§impl PlotAdapter<'_, Histogram>
impl PlotAdapter<'_, Histogram>
Sourcepub fn composite(self, composite: HistogramComposite) -> Self
pub fn composite(self, composite: HistogramComposite) -> Self
Forward native Histogram composite configuration.
Source§impl PlotAdapter<'_, Qq>
impl PlotAdapter<'_, Qq>
Sourcepub fn reference_line(self, line: QqLine) -> Self
pub fn reference_line(self, line: QqLine) -> Self
Forward native Qq reference_line configuration.
Source§impl PlotAdapter<'_, Regression>
impl PlotAdapter<'_, Regression>
Sourcepub fn band(self, band: RegressionBand) -> Self
pub fn band(self, band: RegressionBand) -> Self
Forward native Regression band configuration.
Source§impl PlotAdapter<'_, LinePath>
impl PlotAdapter<'_, LinePath>
Sourcepub fn style(self, style: LinePathStyle) -> Self
pub fn style(self, style: LinePathStyle) -> Self
Forward native LinePath style configuration.
Source§impl PlotAdapter<'_, Raincloud>
impl PlotAdapter<'_, Raincloud>
Source§impl PlotAdapter<'_, Raincloud>
impl PlotAdapter<'_, Raincloud>
Sourcepub fn clear_hue_label_style(self) -> Self
pub fn clear_hue_label_style(self) -> Self
Forward native Raincloud clear_hue_label_style configuration.
Source§impl PlotAdapter<'_, Raincloud>
impl PlotAdapter<'_, Raincloud>
Sourcepub fn clear_hue_label_layout(self) -> Self
pub fn clear_hue_label_layout(self) -> Self
Forward native Raincloud clear_hue_label_layout configuration.
Source§impl PlotAdapter<'_, Coefficient>
impl PlotAdapter<'_, Coefficient>
Sourcepub fn reference_line(self, value: f64) -> Self
pub fn reference_line(self, value: f64) -> Self
Forward native Coefficient reference_line configuration.
Source§impl PlotAdapter<'_, Interaction>
impl PlotAdapter<'_, Interaction>
Sourcepub fn connectors(self, visible: bool) -> Self
pub fn connectors(self, visible: bool) -> Self
Forward native Interaction connectors configuration.
Source§impl PlotAdapter<'_, Interaction>
impl PlotAdapter<'_, Interaction>
Sourcepub fn styles(self, styles: impl IntoIterator<Item = InteractionStyle>) -> Self
pub fn styles(self, styles: impl IntoIterator<Item = InteractionStyle>) -> Self
Forward native Interaction styles configuration.
Source§impl PlotAdapter<'_, Waterfall>
impl PlotAdapter<'_, Waterfall>
Sourcepub fn total_format(self, format: NumericFormat) -> Self
pub fn total_format(self, format: NumericFormat) -> Self
Forward native Waterfall total_format configuration.
Source§impl PlotAdapter<'_, Waterfall>
impl PlotAdapter<'_, Waterfall>
Sourcepub fn total_labels(self, labels: WaterfallLabels) -> Self
pub fn total_labels(self, labels: WaterfallLabels) -> Self
Forward native Waterfall total_labels configuration.
Source§impl PlotAdapter<'_, Waterfall>
impl PlotAdapter<'_, Waterfall>
Sourcepub fn total_text_layout(self, layout: TextLayout) -> Self
pub fn total_text_layout(self, layout: TextLayout) -> Self
Forward native Waterfall total_text_layout configuration.
Source§impl PlotAdapter<'_, Matrix>
impl PlotAdapter<'_, Matrix>
Sourcepub fn matrix_row_text_layout(self, layout: TextLayout) -> Self
pub fn matrix_row_text_layout(self, layout: TextLayout) -> Self
Forward native Matrix matrix_row_text_layout configuration.
Source§impl PlotAdapter<'_, Matrix>
impl PlotAdapter<'_, Matrix>
Sourcepub fn matrix_column_text_layout(self, layout: TextLayout) -> Self
pub fn matrix_column_text_layout(self, layout: TextLayout) -> Self
Forward native Matrix matrix_column_text_layout configuration.
Source§impl PlotAdapter<'_, Line>
impl PlotAdapter<'_, Line>
Sourcepub fn point_layer(self, layer: impl Into<PointLayer>) -> Self
pub fn point_layer(self, layer: impl Into<PointLayer>) -> Self
Append an independently bound native or adapter layer.
Source§impl PlotAdapter<'_, Bar>
impl PlotAdapter<'_, Bar>
Sourcepub fn point_layer(self, layer: impl Into<BarPointLayer>) -> Self
pub fn point_layer(self, layer: impl Into<BarPointLayer>) -> Self
Append an independently bound native or adapter layer.
Source§impl PlotAdapter<'_, HorizontalBar>
impl PlotAdapter<'_, HorizontalBar>
Sourcepub fn point_layer(self, layer: impl Into<BarPointLayer>) -> Self
pub fn point_layer(self, layer: impl Into<BarPointLayer>) -> Self
Append an independently bound native or adapter layer.
Source§impl<K: Facet> PlotAdapter<'_, K>
impl<K: Facet> PlotAdapter<'_, K>
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn get_default_theme(&self) -> Option<&Theme>
pub fn get_default_theme(&self) -> Option<&Theme>
Borrow the retained construction default.
Sourcepub fn get_point_alpha(&self) -> &AlphaEncoding
pub fn get_point_alpha(&self) -> &AlphaEncoding
Inspect the authored point alpha encoding without ending source lookup.
Sourcepub fn get_line_alpha(&self) -> &AlphaEncoding
pub fn get_line_alpha(&self) -> &AlphaEncoding
Inspect the authored line alpha encoding without ending source lookup.
Sourcepub fn get_fill_alpha(&self) -> &AlphaEncoding
pub fn get_fill_alpha(&self) -> &AlphaEncoding
Inspect the authored fill alpha encoding without ending source lookup.
Sourcepub fn get_labels(&self) -> &Labels
pub fn get_labels(&self) -> &Labels
Borrow the native authored label policy.
Sourcepub fn size_with_unit(
self,
width: f64,
height: f64,
unit: SizeUnit,
) -> Result<Self>
pub fn size_with_unit( self, width: f64, height: f64, unit: SizeUnit, ) -> Result<Self>
Request an exact physical size, retaining the native source lookup.
Sourcepub fn preflight(&self) -> Result<()>
pub fn preflight(&self) -> Result<()>
Validate the chart without publishing or releasing source lookup.
Sourcepub fn preflight_with_operation(&self, options: &OperationOptions) -> Result<()>
pub fn preflight_with_operation(&self, options: &OperationOptions) -> Result<()>
Use the native per-call options without releasing source lookup.
Sourcepub fn render(&self) -> Result<Output>
pub fn render(&self) -> Result<Output>
Freeze one reusable output without publishing or releasing source lookup.
Sourcepub fn render_with_operation(
&self,
options: &OperationOptions,
) -> Result<Output>
pub fn render_with_operation( &self, options: &OperationOptions, ) -> Result<Output>
Use the native per-call options without releasing source lookup.
Sourcepub fn render_with_results(&self) -> Result<RenderWithResults>
pub fn render_with_results(&self) -> Result<RenderWithResults>
Freeze one output and the scientific values from that same native preparation.
Sourcepub fn render_with_results_with_operation(
&self,
options: &OperationOptions,
) -> Result<RenderWithResults>
pub fn render_with_results_with_operation( &self, options: &OperationOptions, ) -> Result<RenderWithResults>
Use explicit options for the same-preparation result operation.
Sourcepub fn significance<P>(
self,
annotations: impl IntoIterator<Item = Significance<P>>,
) -> Selfwhere
K: Significance<P>,
pub fn significance<P>(
self,
annotations: impl IntoIterator<Item = Significance<P>>,
) -> Selfwhere
K: Significance<P>,
Append caller-owned native significance annotations with their placement type.
Sourcepub fn svg(&self, path: impl AsRef<Path>) -> Result<Output>
pub fn svg(&self, path: impl AsRef<Path>) -> Result<Output>
Render and publish SVG, returning the native reusable Output.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Sourcepub fn svg_with_operation(
&self,
path: impl AsRef<Path>,
options: &OperationOptions,
) -> Result<Output>
pub fn svg_with_operation( &self, path: impl AsRef<Path>, options: &OperationOptions, ) -> Result<Output>
Render and publish using the native operation options.
Sourcepub fn svg_preserve_text(&self, path: impl AsRef<Path>) -> Result<Output>
pub fn svg_preserve_text(&self, path: impl AsRef<Path>) -> Result<Output>
Render and publish SVG retaining selectable text.
Sourcepub fn svg_preserve_text_with_operation(
&self,
path: impl AsRef<Path>,
options: &OperationOptions,
) -> Result<Output>
pub fn svg_preserve_text_with_operation( &self, path: impl AsRef<Path>, options: &OperationOptions, ) -> Result<Output>
Render and publish using the native operation options.
Sourcepub fn png_with_operation(
&self,
path: impl AsRef<Path>,
options: &OperationOptions,
) -> Result<Output>
pub fn png_with_operation( &self, path: impl AsRef<Path>, options: &OperationOptions, ) -> Result<Output>
Render and publish using the native operation options.
Sourcepub fn png_preview(&self, path: impl AsRef<Path>) -> Result<Output>
pub fn png_preview(&self, path: impl AsRef<Path>) -> Result<Output>
Render and publish a source-sized PNG.
Sourcepub fn png_preview_with_operation(
&self,
path: impl AsRef<Path>,
options: &OperationOptions,
) -> Result<Output>
pub fn png_preview_with_operation( &self, path: impl AsRef<Path>, options: &OperationOptions, ) -> Result<Output>
Render and publish using the native operation options.
Sourcepub fn png_with_options(
&self,
path: impl AsRef<Path>,
options: PngOptions,
) -> Result<Output>
pub fn png_with_options( &self, path: impl AsRef<Path>, options: PngOptions, ) -> Result<Output>
Publish using native caller-owned PNG sizing and encoding options.
Sourcepub fn png_with_options_with_operation(
&self,
path: impl AsRef<Path>,
options: PngOptions,
operation: &OperationOptions,
) -> Result<Output>
pub fn png_with_options_with_operation( &self, path: impl AsRef<Path>, options: PngOptions, operation: &OperationOptions, ) -> Result<Output>
Render and publish using native device and operation options.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn data_roles(&self) -> Result<Vec<DataRoleInfo>, AdapterError>
pub fn data_roles(&self) -> Result<Vec<DataRoleInfo>, AdapterError>
Discover actual original inputs in the native plot.
Sourcepub fn data_roles_at(
&self,
target: &ElementRef,
) -> Result<Vec<DataRoleInfo>, AdapterError>
pub fn data_roles_at( &self, target: &ElementRef, ) -> Result<Vec<DataRoleInfo>, AdapterError>
Inspect original inputs of an actual declaration.
Sourcepub fn data_roles_in(
&self,
panel: &PanelPath,
) -> Result<Vec<DataRoleInfo>, AdapterError>
pub fn data_roles_in( &self, panel: &PanelPath, ) -> Result<Vec<DataRoleInfo>, AdapterError>
Inspect original inputs of actual declarations in a panel.
Sourcepub fn data(
&self,
selector: impl Into<DataSelector>,
) -> Result<DataValue, AdapterError>
pub fn data( &self, selector: impl Into<DataSelector>, ) -> Result<DataValue, AdapterError>
Read an actual original input, without source lookup.
Sourcepub fn elements(
&self,
query: ElementQuery,
) -> Result<Vec<ElementRef>, AdapterError>
pub fn elements( &self, query: ElementQuery, ) -> Result<Vec<ElementRef>, AdapterError>
Discover actual native scientific layer declarations.
Sourcepub fn element_ref(
&self,
query: impl Into<ElementQuery>,
) -> Result<ElementRef, AdapterError>
pub fn element_ref( &self, query: impl Into<ElementQuery>, ) -> Result<ElementRef, AdapterError>
Find an actual native declaration.
Sourcepub fn read_element(
&self,
reference: &ElementRef,
) -> Result<ElementSnapshot, AdapterError>
pub fn read_element( &self, reference: &ElementRef, ) -> Result<ElementSnapshot, AdapterError>
Read an owning native declaration snapshot.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn get_significance(&self) -> Option<&[SignificanceAnnotation]>
pub fn get_significance(&self) -> Option<&[SignificanceAnnotation]>
Read actual supplied significance annotations.
Source§impl PlotAdapter<'_, Histogram>
impl PlotAdapter<'_, Histogram>
Sourcepub fn stat_result(&self) -> Result<HistogramResult>
pub fn stat_result(&self) -> Result<HistogramResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<HistogramResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<HistogramResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<HistogramResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<HistogramResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<HistogramResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<HistogramResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Density>
impl PlotAdapter<'_, Density>
Sourcepub fn stat_result(&self) -> Result<DensityResult>
pub fn stat_result(&self) -> Result<DensityResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<DensityResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<DensityResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<DensityResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<DensityResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<DensityResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<DensityResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Qq>
impl PlotAdapter<'_, Qq>
Sourcepub fn stat_result(&self) -> Result<ProbabilityPlotResult>
pub fn stat_result(&self) -> Result<ProbabilityPlotResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<ProbabilityPlotResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<ProbabilityPlotResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<ProbabilityPlotResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<ProbabilityPlotResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<ProbabilityPlotResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<ProbabilityPlotResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Regression>
impl PlotAdapter<'_, Regression>
Sourcepub fn stat_result(&self) -> Result<FitResult>
pub fn stat_result(&self) -> Result<FitResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<FitResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<FitResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<FitResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<FitResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<FitResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<FitResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Bar>
impl PlotAdapter<'_, Bar>
Sourcepub fn stat_result(&self) -> Result<StatResult>
pub fn stat_result(&self) -> Result<StatResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<StatResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<StatResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, HorizontalBar>
impl PlotAdapter<'_, HorizontalBar>
Sourcepub fn stat_result(&self) -> Result<StatResult>
pub fn stat_result(&self) -> Result<StatResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<StatResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<StatResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, StackedBar>
impl PlotAdapter<'_, StackedBar>
Sourcepub fn stat_result(&self) -> Result<StatResult>
pub fn stat_result(&self) -> Result<StatResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<StatResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<StatResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, StackedHorizontalBar>
impl PlotAdapter<'_, StackedHorizontalBar>
Sourcepub fn stat_result(&self) -> Result<StatResult>
pub fn stat_result(&self) -> Result<StatResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<StatResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<StatResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Interaction>
impl PlotAdapter<'_, Interaction>
Sourcepub fn stat_result(&self) -> Result<StatResult>
pub fn stat_result(&self) -> Result<StatResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<StatResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<StatResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Waterfall>
impl PlotAdapter<'_, Waterfall>
Sourcepub fn stat_result(&self) -> Result<StatResult>
pub fn stat_result(&self) -> Result<StatResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<StatResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<StatResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Boxplot>
impl PlotAdapter<'_, Boxplot>
Sourcepub fn stat_result(&self) -> Result<BoxSummary>
pub fn stat_result(&self) -> Result<BoxSummary>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<BoxSummary>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<BoxSummary>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<BoxSummary>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<BoxSummary>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<BoxSummary>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<BoxSummary>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Violin>
impl PlotAdapter<'_, Violin>
Sourcepub fn stat_result(&self) -> Result<DensityProfiles>
pub fn stat_result(&self) -> Result<DensityProfiles>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<DensityProfiles>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<DensityProfiles>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<DensityProfiles>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<DensityProfiles>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<DensityProfiles>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<DensityProfiles>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Raincloud>
impl PlotAdapter<'_, Raincloud>
Sourcepub fn stat_result(&self) -> Result<RaincloudGeometry>
pub fn stat_result(&self) -> Result<RaincloudGeometry>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<RaincloudGeometry>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<RaincloudGeometry>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<RaincloudGeometry>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<RaincloudGeometry>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<RaincloudGeometry>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<RaincloudGeometry>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, PointInterval>
impl PlotAdapter<'_, PointInterval>
Sourcepub fn stat_result(&self) -> Result<StatResult>
pub fn stat_result(&self) -> Result<StatResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<StatResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<StatResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Forest>
impl PlotAdapter<'_, Forest>
Sourcepub fn stat_result(&self) -> Result<StatResult>
pub fn stat_result(&self) -> Result<StatResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<StatResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<StatResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Coefficient>
impl PlotAdapter<'_, Coefficient>
Sourcepub fn stat_result(&self) -> Result<StatResult>
pub fn stat_result(&self) -> Result<StatResult>
Prepare actual scientific values without rendering.
Sourcepub fn stat_result_with_operation(
&self,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_with_operation( &self, options: &OperationOptions, ) -> Result<StatResult>
Prepare with native operation options.
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<StatResult>
Prepare actual values for the selected scientific panel.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<StatResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<StatResult>
Prepare the selected panel with explicit operation options.
Source§impl PlotAdapter<'_, Density>
impl PlotAdapter<'_, Density>
Sourcepub fn stat_result_group(
&self,
panel: &PanelPath,
group: &GroupKey,
) -> Result<DensityResult>
pub fn stat_result_group( &self, panel: &PanelPath, group: &GroupKey, ) -> Result<DensityResult>
Prepare the actual selected original group of a density panel.
Sourcepub fn stat_result_group_with_operation(
&self,
panel: &PanelPath,
group: &GroupKey,
options: &OperationOptions,
) -> Result<DensityResult>
pub fn stat_result_group_with_operation( &self, panel: &PanelPath, group: &GroupKey, options: &OperationOptions, ) -> Result<DensityResult>
Prepare an original density group with per-call resource options.
Source§impl PlotAdapter<'_, Marginal>
impl PlotAdapter<'_, Marginal>
Sourcepub fn stat_result_group(
&self,
panel: &PanelPath,
group: &GroupKey,
) -> Result<DensityResult>
pub fn stat_result_group( &self, panel: &PanelPath, group: &GroupKey, ) -> Result<DensityResult>
Prepare the actual selected original group of a density panel.
Sourcepub fn stat_result_group_with_operation(
&self,
panel: &PanelPath,
group: &GroupKey,
options: &OperationOptions,
) -> Result<DensityResult>
pub fn stat_result_group_with_operation( &self, panel: &PanelPath, group: &GroupKey, options: &OperationOptions, ) -> Result<DensityResult>
Prepare an original density group with per-call resource options.
Source§impl PlotAdapter<'_, Matrix>
impl PlotAdapter<'_, Matrix>
Sourcepub fn stat_result_group(
&self,
panel: &PanelPath,
group: &GroupKey,
) -> Result<DensityResult>
pub fn stat_result_group( &self, panel: &PanelPath, group: &GroupKey, ) -> Result<DensityResult>
Prepare the actual selected original group of a density panel.
Sourcepub fn stat_result_group_with_operation(
&self,
panel: &PanelPath,
group: &GroupKey,
options: &OperationOptions,
) -> Result<DensityResult>
pub fn stat_result_group_with_operation( &self, panel: &PanelPath, group: &GroupKey, options: &OperationOptions, ) -> Result<DensityResult>
Prepare an original density group with per-call resource options.
Source§impl PlotAdapter<'_, Marginal>
impl PlotAdapter<'_, Marginal>
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<DensityResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<DensityResult>
Prepare actual density values for the selected scientific region.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<DensityResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<DensityResult>
Prepare the selected region with operation options.
Source§impl PlotAdapter<'_, Matrix>
impl PlotAdapter<'_, Matrix>
Sourcepub fn stat_result_in(&self, panel: &PanelPath) -> Result<DensityResult>
pub fn stat_result_in(&self, panel: &PanelPath) -> Result<DensityResult>
Prepare actual density values for the selected scientific region.
Sourcepub fn stat_result_in_with_operation(
&self,
panel: &PanelPath,
options: &OperationOptions,
) -> Result<DensityResult>
pub fn stat_result_in_with_operation( &self, panel: &PanelPath, options: &OperationOptions, ) -> Result<DensityResult>
Prepare the selected region with operation options.
Source§impl<'source> PlotAdapter<'source, Histogram>
impl<'source> PlotAdapter<'source, Histogram>
Sourcepub fn geometry(
lower: impl NumericInput,
upper: impl NumericInput,
height: impl NumericInput,
stat: HistogramStat,
) -> Result<Self, AdapterError>
pub fn geometry( lower: impl NumericInput, upper: impl NumericInput, height: impl NumericInput, stat: HistogramStat, ) -> Result<Self, AdapterError>
Snapshot supplied bin edges and heights, with their declared statistic.
Sourcepub fn geometry_from_data(
source: impl ArraySource + 'source,
lower: impl NumericInput,
upper: impl NumericInput,
height: impl NumericInput,
stat: HistogramStat,
) -> Result<Self, AdapterError>
pub fn geometry_from_data( source: impl ArraySource + 'source, lower: impl NumericInput, upper: impl NumericInput, height: impl NumericInput, stat: HistogramStat, ) -> Result<Self, AdapterError>
Snapshot the selected bin columns and retain only their main lookup context.
Source§impl<'source> PlotAdapter<'source, Raincloud>
impl<'source> PlotAdapter<'source, Raincloud>
Sourcepub fn geometry(
category: impl CategoryInput,
q1: impl NumericInput,
median: impl NumericInput,
q3: impl NumericInput,
density_category: impl CategoryInput,
density_y: impl NumericInput,
normalized_width: impl NumericInput,
point_category: impl CategoryInput,
point_y: impl NumericInput,
normalized_strip: impl NumericInput,
category_dimension: impl Into<String>,
value_dimension: impl Into<String>,
) -> Result<Self, AdapterError>
pub fn geometry( category: impl CategoryInput, q1: impl NumericInput, median: impl NumericInput, q3: impl NumericInput, density_category: impl CategoryInput, density_y: impl NumericInput, normalized_width: impl NumericInput, point_category: impl CategoryInput, point_y: impl NumericInput, normalized_strip: impl NumericInput, category_dimension: impl Into<String>, value_dimension: impl Into<String>, ) -> Result<Self, AdapterError>
Snapshot complete geometry from direct columns in main/auxiliary domain order, followed by scientific dimension names.
Sourcepub fn geometry_from_data(
source: impl ArraySource + 'source,
density_source: Option<&dyn ArraySource>,
points_source: Option<&dyn ArraySource>,
category: impl CategoryInput,
q1: impl NumericInput,
median: impl NumericInput,
q3: impl NumericInput,
density_category: impl CategoryInput,
density_y: impl NumericInput,
normalized_width: impl NumericInput,
point_category: impl CategoryInput,
point_y: impl NumericInput,
normalized_strip: impl NumericInput,
category_dimension: impl Into<String>,
value_dimension: impl Into<String>,
) -> Result<Self, AdapterError>
pub fn geometry_from_data( source: impl ArraySource + 'source, density_source: Option<&dyn ArraySource>, points_source: Option<&dyn ArraySource>, category: impl CategoryInput, q1: impl NumericInput, median: impl NumericInput, q3: impl NumericInput, density_category: impl CategoryInput, density_y: impl NumericInput, normalized_width: impl NumericInput, point_category: impl CategoryInput, point_y: impl NumericInput, normalized_strip: impl NumericInput, category_dimension: impl Into<String>, value_dimension: impl Into<String>, ) -> Result<Self, AdapterError>
Snapshot independently selected/direct component columns. The main source is retained; each optional auxiliary source is used only for its own domain, with no cross-domain selector fallback.
Source§impl<'source> PlotAdapter<'source, Raincloud>
impl<'source> PlotAdapter<'source, Raincloud>
Sourcepub fn geometry_with_hue(
category: impl CategoryInput,
hue: impl CategoryInput,
q1: impl NumericInput,
median: impl NumericInput,
q3: impl NumericInput,
density_category: impl CategoryInput,
density_hue: impl CategoryInput,
density_y: impl NumericInput,
normalized_width: impl NumericInput,
point_category: impl CategoryInput,
point_hue: impl CategoryInput,
point_y: impl NumericInput,
normalized_strip: impl NumericInput,
category_dimension: impl Into<String>,
value_dimension: impl Into<String>,
hue_dimension: impl Into<String>,
) -> Result<Self, AdapterError>
pub fn geometry_with_hue( category: impl CategoryInput, hue: impl CategoryInput, q1: impl NumericInput, median: impl NumericInput, q3: impl NumericInput, density_category: impl CategoryInput, density_hue: impl CategoryInput, density_y: impl NumericInput, normalized_width: impl NumericInput, point_category: impl CategoryInput, point_hue: impl CategoryInput, point_y: impl NumericInput, normalized_strip: impl NumericInput, category_dimension: impl Into<String>, value_dimension: impl Into<String>, hue_dimension: impl Into<String>, ) -> Result<Self, AdapterError>
Snapshot complete geometry from direct columns in main/auxiliary domain order, followed by scientific dimension names.
Sourcepub fn geometry_with_hue_from_data(
source: impl ArraySource + 'source,
density_source: Option<&dyn ArraySource>,
points_source: Option<&dyn ArraySource>,
category: impl CategoryInput,
hue: impl CategoryInput,
q1: impl NumericInput,
median: impl NumericInput,
q3: impl NumericInput,
density_category: impl CategoryInput,
density_hue: impl CategoryInput,
density_y: impl NumericInput,
normalized_width: impl NumericInput,
point_category: impl CategoryInput,
point_hue: impl CategoryInput,
point_y: impl NumericInput,
normalized_strip: impl NumericInput,
category_dimension: impl Into<String>,
value_dimension: impl Into<String>,
hue_dimension: impl Into<String>,
) -> Result<Self, AdapterError>
pub fn geometry_with_hue_from_data( source: impl ArraySource + 'source, density_source: Option<&dyn ArraySource>, points_source: Option<&dyn ArraySource>, category: impl CategoryInput, hue: impl CategoryInput, q1: impl NumericInput, median: impl NumericInput, q3: impl NumericInput, density_category: impl CategoryInput, density_hue: impl CategoryInput, density_y: impl NumericInput, normalized_width: impl NumericInput, point_category: impl CategoryInput, point_hue: impl CategoryInput, point_y: impl NumericInput, normalized_strip: impl NumericInput, category_dimension: impl Into<String>, value_dimension: impl Into<String>, hue_dimension: impl Into<String>, ) -> Result<Self, AdapterError>
Snapshot independently selected/direct component columns. The main source is retained; each optional auxiliary source is used only for its own domain, with no cross-domain selector fallback.
Source§impl PlotAdapter<'_, Raincloud>
impl PlotAdapter<'_, Raincloud>
Sourcepub fn from_geometry(geometry: RaincloudGeometry) -> Self
pub fn from_geometry(geometry: RaincloudGeometry) -> Self
Consume an already owned native raincloud geometry directly.
Sourcepub fn get_geometry(&self) -> Option<&RaincloudGeometry>
pub fn get_geometry(&self) -> Option<&RaincloudGeometry>
Borrow the actual supplied raincloud geometry.
Source§impl PlotAdapter<'_, Histogram>
impl PlotAdapter<'_, Histogram>
Sourcepub fn from_geometry(geometry: HistogramGeometry) -> Self
pub fn from_geometry(geometry: HistogramGeometry) -> Self
Consume an already owned native histogram geometry directly.
Sourcepub fn get_geometry(&self) -> Option<&HistogramGeometry>
pub fn get_geometry(&self) -> Option<&HistogramGeometry>
Borrow the actual supplied geometry, if any.
Sourcepub fn kde(
self,
x: impl NumericInput,
density: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn kde( self, x: impl NumericInput, density: impl NumericInput, ) -> Result<Self, AdapterError>
Add or replace the given KDE using direct columns in its own domain.
Sourcepub fn kde_from_data(
self,
source: impl ArraySource,
x: impl NumericInput,
density: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn kde_from_data( self, source: impl ArraySource, x: impl NumericInput, density: impl NumericInput, ) -> Result<Self, AdapterError>
Snapshot KDE columns from their own auxiliary source.
Sourcepub fn rug(
self,
x: impl NumericInput,
baseline: impl NumericInput,
top: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn rug( self, x: impl NumericInput, baseline: impl NumericInput, top: impl NumericInput, ) -> Result<Self, AdapterError>
Add or replace independently supplied rug segments from direct columns.
Sourcepub fn rug_from_data(
self,
source: impl ArraySource,
x: impl NumericInput,
baseline: impl NumericInput,
top: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn rug_from_data( self, source: impl ArraySource, x: impl NumericInput, baseline: impl NumericInput, top: impl NumericInput, ) -> Result<Self, AdapterError>
Snapshot rug columns from their own auxiliary source.
Sourcepub fn value_dimension(
self,
name: impl Into<String>,
) -> Result<Self, AdapterError>
pub fn value_dimension( self, name: impl Into<String>, ) -> Result<Self, AdapterError>
Set the original scientific x dimension of supplied geometry.
Sourcepub fn height_dimension(
self,
name: impl Into<String>,
) -> Result<Self, AdapterError>
pub fn height_dimension( self, name: impl Into<String>, ) -> Result<Self, AdapterError>
Set the original scientific height dimension of supplied geometry.
Sourcepub fn composite_precomputed_kde(
self,
x: impl NumericInput,
y: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn composite_precomputed_kde( self, x: impl NumericInput, y: impl NumericInput, ) -> Result<Self, AdapterError>
Snapshot direct KDE columns for the sample-owned KDE+rug composite. Samples, bins, stat and the main lookup context are unchanged.
Sourcepub fn composite_precomputed_kde_from_data(
self,
source: impl ArraySource,
x: impl NumericInput,
y: impl NumericInput,
) -> Result<Self, AdapterError>
pub fn composite_precomputed_kde_from_data( self, source: impl ArraySource, x: impl NumericInput, y: impl NumericInput, ) -> Result<Self, AdapterError>
Snapshot KDE from an independent source, retaining no borrow of it and never using the main source as a selector fallback.
Source§impl<'source> PlotAdapter<'source, Heatmap>
impl<'source> PlotAdapter<'source, Heatmap>
Sourcepub fn new(grid: impl ColumnsInput) -> Result<Self, AdapterError>
pub fn new(grid: impl ColumnsInput) -> Result<Self, AdapterError>
Bind a numeric matrix with logical rows top-to-bottom and columns left-to-right.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Sourcepub fn from_data(
source: impl ArraySource + 'source,
columns: impl ColumnsInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, columns: impl ColumnsInput, ) -> Result<Self, AdapterError>
Select ordered source columns, or .. for every column.
Sourcepub fn x_labels<I, S>(self, labels: I) -> Result<Self, AdapterError>
pub fn x_labels<I, S>(self, labels: I) -> Result<Self, AdapterError>
Assign literal column display labels without merging positional identities.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Sourcepub fn y_labels<I, S>(self, labels: I) -> Result<Self, AdapterError>
pub fn y_labels<I, S>(self, labels: I) -> Result<Self, AdapterError>
Assign literal row display labels without changing source membership.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Sourcepub fn row_labels(
self,
values: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn row_labels( self, values: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind row display metadata from a categorical source column or direct vector.
Sourcepub fn highlight_cells(
self,
values: impl BooleanInput,
) -> Result<Self, AdapterError>
pub fn highlight_cells( self, values: impl BooleanInput, ) -> Result<Self, AdapterError>
Bind Boolean records or a same-shape cell grid; true highlights, not masks.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Source§impl<K: EstimateStatus> PlotAdapter<'_, K>
impl<K: EstimateStatus> PlotAdapter<'_, K>
Sourcepub fn estimate_status_boolean(
self,
input: impl BooleanInput,
) -> Result<Self, AdapterError>
pub fn estimate_status_boolean( self, input: impl BooleanInput, ) -> Result<Self, AdapterError>
Explicitly map Boolean true/false to Estimated/NotEstimable; null is an error.
Sourcepub fn estimate_status_categorical<I, S>(
self,
input: impl CategoryInput,
mapping: I,
) -> Result<Self, AdapterError>
pub fn estimate_status_categorical<I, S>( self, input: impl CategoryInput, mapping: I, ) -> Result<Self, AdapterError>
Map exact raw categorical statuses, rejecting missing/unmapped observations.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn get_estimate_status(&self) -> Option<&EstimateStatusBinding>
pub fn get_estimate_status(&self) -> Option<&EstimateStatusBinding>
Read the native estimate availability declaration, without looking up the source again.
Source§impl<'source> PlotAdapter<'source, Scatter>
impl<'source> PlotAdapter<'source, Scatter>
Sourcepub fn new(
x: impl NumericInput,
y: impl NumericSeriesInput,
) -> Result<Self, AdapterError>
pub fn new( x: impl NumericInput, y: impl NumericSeriesInput, ) -> Result<Self, AdapterError>
Bind actual x coordinates and one numeric variable or an explicit many-y matrix/selection.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
x: impl NumericInput,
y: impl NumericSeriesInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, x: impl NumericInput, y: impl NumericSeriesInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct variables and retain later column lookup.
Sourcepub fn indexed(variables: impl ColumnsInput) -> Result<Self, AdapterError>
pub fn indexed(variables: impl ColumnsInput) -> Result<Self, AdapterError>
Explicitly choose zero-based logical row position as x.
Sourcepub fn indexed_from_data(
source: impl ArraySource + 'source,
columns: impl ColumnsInput,
) -> Result<Self, AdapterError>
pub fn indexed_from_data( source: impl ArraySource + 'source, columns: impl ColumnsInput, ) -> Result<Self, AdapterError>
Use row position and an ordered logical-column selection, including ...
Sourcepub fn indexed_numeric_from_data(
source: impl ArraySource + 'source,
) -> Result<Self, AdapterError>
pub fn indexed_numeric_from_data( source: impl ArraySource + 'source, ) -> Result<Self, AdapterError>
Explicit numeric discovery on a homogeneous source uses all columns.
Source§impl<'source> PlotAdapter<'source, Line>
impl<'source> PlotAdapter<'source, Line>
Sourcepub fn new(
x: impl NumericInput,
y: impl NumericSeriesInput,
) -> Result<Self, AdapterError>
pub fn new( x: impl NumericInput, y: impl NumericSeriesInput, ) -> Result<Self, AdapterError>
Bind actual x coordinates and one numeric variable or an explicit many-y matrix/selection.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
x: impl NumericInput,
y: impl NumericSeriesInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, x: impl NumericInput, y: impl NumericSeriesInput, ) -> Result<Self, AdapterError>
Bind logical source columns/direct variables and retain later column lookup.
Sourcepub fn indexed(variables: impl ColumnsInput) -> Result<Self, AdapterError>
pub fn indexed(variables: impl ColumnsInput) -> Result<Self, AdapterError>
Explicitly choose zero-based logical row position as x.
Sourcepub fn indexed_from_data(
source: impl ArraySource + 'source,
columns: impl ColumnsInput,
) -> Result<Self, AdapterError>
pub fn indexed_from_data( source: impl ArraySource + 'source, columns: impl ColumnsInput, ) -> Result<Self, AdapterError>
Use row position and an ordered logical-column selection, including ...
Sourcepub fn indexed_numeric_from_data(
source: impl ArraySource + 'source,
) -> Result<Self, AdapterError>
pub fn indexed_numeric_from_data( source: impl ArraySource + 'source, ) -> Result<Self, AdapterError>
Explicit numeric discovery on a homogeneous source uses all columns.
Source§impl<'source> PlotAdapter<'source, Boxplot>
impl<'source> PlotAdapter<'source, Boxplot>
Sourcepub fn new(
category: impl CategoryInput,
values: impl NumericSeriesInput,
) -> Result<Self, AdapterError>
pub fn new( category: impl CategoryInput, values: impl NumericSeriesInput, ) -> Result<Self, AdapterError>
Bind categories and one or explicitly multiple sample variables.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
values: impl NumericSeriesInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, category: impl CategoryInput, values: impl NumericSeriesInput, ) -> Result<Self, AdapterError>
Bind source columns/direct samples; generated column identity supplies positioned series.
Sourcepub fn columns(variables: impl ColumnsInput) -> Result<Self, AdapterError>
pub fn columns(variables: impl ColumnsInput) -> Result<Self, AdapterError>
Use logical column identities as categories, with cells as observations.
Sourcepub fn columns_from_data(
source: impl ArraySource + 'source,
columns: impl ColumnsInput,
) -> Result<Self, AdapterError>
pub fn columns_from_data( source: impl ArraySource + 'source, columns: impl ColumnsInput, ) -> Result<Self, AdapterError>
Select ordered logical source columns for column-category distributions.
Sourcepub fn numeric_columns_from_data(
source: impl ArraySource + 'source,
) -> Result<Self, AdapterError>
pub fn numeric_columns_from_data( source: impl ArraySource + 'source, ) -> Result<Self, AdapterError>
Explicit numeric discovery on a homogeneous source uses all columns.
Source§impl<'source> PlotAdapter<'source, Violin>
impl<'source> PlotAdapter<'source, Violin>
Sourcepub fn new(
category: impl CategoryInput,
values: impl NumericSeriesInput,
) -> Result<Self, AdapterError>
pub fn new( category: impl CategoryInput, values: impl NumericSeriesInput, ) -> Result<Self, AdapterError>
Bind categories and one or explicitly multiple sample variables.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
values: impl NumericSeriesInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, category: impl CategoryInput, values: impl NumericSeriesInput, ) -> Result<Self, AdapterError>
Bind source columns/direct samples; generated column identity supplies positioned series.
Sourcepub fn columns(variables: impl ColumnsInput) -> Result<Self, AdapterError>
pub fn columns(variables: impl ColumnsInput) -> Result<Self, AdapterError>
Use logical column identities as categories, with cells as observations.
Sourcepub fn columns_from_data(
source: impl ArraySource + 'source,
columns: impl ColumnsInput,
) -> Result<Self, AdapterError>
pub fn columns_from_data( source: impl ArraySource + 'source, columns: impl ColumnsInput, ) -> Result<Self, AdapterError>
Select ordered logical source columns for column-category distributions.
Sourcepub fn numeric_columns_from_data(
source: impl ArraySource + 'source,
) -> Result<Self, AdapterError>
pub fn numeric_columns_from_data( source: impl ArraySource + 'source, ) -> Result<Self, AdapterError>
Explicit numeric discovery on a homogeneous source uses all columns.
Source§impl<'source> PlotAdapter<'source, Raincloud>
impl<'source> PlotAdapter<'source, Raincloud>
Sourcepub fn new(
category: impl CategoryInput,
values: impl NumericSeriesInput,
) -> Result<Self, AdapterError>
pub fn new( category: impl CategoryInput, values: impl NumericSeriesInput, ) -> Result<Self, AdapterError>
Bind categories and one or explicitly multiple sample variables.
Sourcepub fn from_data(
source: impl ArraySource + 'source,
category: impl CategoryInput,
values: impl NumericSeriesInput,
) -> Result<Self, AdapterError>
pub fn from_data( source: impl ArraySource + 'source, category: impl CategoryInput, values: impl NumericSeriesInput, ) -> Result<Self, AdapterError>
Bind source columns/direct samples; generated column identity supplies positioned series.
Sourcepub fn columns(variables: impl ColumnsInput) -> Result<Self, AdapterError>
pub fn columns(variables: impl ColumnsInput) -> Result<Self, AdapterError>
Use logical column identities as categories, with cells as observations.
Sourcepub fn columns_from_data(
source: impl ArraySource + 'source,
columns: impl ColumnsInput,
) -> Result<Self, AdapterError>
pub fn columns_from_data( source: impl ArraySource + 'source, columns: impl ColumnsInput, ) -> Result<Self, AdapterError>
Select ordered logical source columns for column-category distributions.
Sourcepub fn numeric_columns_from_data(
source: impl ArraySource + 'source,
) -> Result<Self, AdapterError>
pub fn numeric_columns_from_data( source: impl ArraySource + 'source, ) -> Result<Self, AdapterError>
Explicit numeric discovery on a homogeneous source uses all columns.
Source§impl<K: Marker> PlotAdapter<'_, K>
impl<K: Marker> PlotAdapter<'_, K>
Sourcepub fn column_labels<I, S>(self, labels: I) -> Result<Self, AdapterError>
pub fn column_labels<I, S>(self, labels: I) -> Result<Self, AdapterError>
Change selected/generated column labels without changing logical column identity.
Sourcepub fn source_rows_cells(
self,
values: impl SourceRowsInput,
) -> Result<Self, AdapterError>where
K: SourceRows,
pub fn source_rows_cells(
self,
values: impl SourceRowsInput,
) -> Result<Self, AdapterError>where
K: SourceRows,
Bind already-expanded unique IDs without repeating any source row identity.
Source§impl<K: Hue> PlotAdapter<'_, K>
impl<K: Hue> PlotAdapter<'_, K>
Sourcepub fn hue_columns(self) -> Result<Self, AdapterError>
pub fn hue_columns(self) -> Result<Self, AdapterError>
Use the generated logical-column dimension in this native role.
Sourcepub fn hue_cells(self, values: impl CategoryInput) -> Result<Self, AdapterError>
pub fn hue_cells(self, values: impl CategoryInput) -> Result<Self, AdapterError>
Bind explicitly expanded categories without source-row repetition.
Source§impl<K: Group> PlotAdapter<'_, K>
impl<K: Group> PlotAdapter<'_, K>
Sourcepub fn group_columns(self) -> Result<Self, AdapterError>
pub fn group_columns(self) -> Result<Self, AdapterError>
Use the generated logical-column dimension in this native role.
Sourcepub fn group_cells(
self,
values: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn group_cells( self, values: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind explicitly expanded categories without source-row repetition.
Source§impl<K: Series> PlotAdapter<'_, K>
impl<K: Series> PlotAdapter<'_, K>
Sourcepub fn series_columns(self) -> Result<Self, AdapterError>
pub fn series_columns(self) -> Result<Self, AdapterError>
Use the generated logical-column dimension in this native role.
Sourcepub fn series_cells(
self,
values: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn series_cells( self, values: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind explicitly expanded categories without source-row repetition.
Source§impl<K: Facet> PlotAdapter<'_, K>
impl<K: Facet> PlotAdapter<'_, K>
Sourcepub fn facet_columns_row(self) -> Result<Self, AdapterError>
pub fn facet_columns_row(self) -> Result<Self, AdapterError>
Facet rows by generated logical-column identity.
Sourcepub fn facet_columns_column(self) -> Result<Self, AdapterError>
pub fn facet_columns_column(self) -> Result<Self, AdapterError>
Facet columns by generated logical-column identity.
Sourcepub fn facet_columns_wrap(self, columns: usize) -> Result<Self, AdapterError>
pub fn facet_columns_wrap(self, columns: usize) -> Result<Self, AdapterError>
Wrap the generated logical-column dimension.
Sourcepub fn facet_row_cells(
self,
values: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn facet_row_cells( self, values: impl CategoryInput, ) -> Result<Self, AdapterError>
Facet rows by explicitly expanded categorical slots.
Sourcepub fn facet_column_cells(
self,
values: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn facet_column_cells( self, values: impl CategoryInput, ) -> Result<Self, AdapterError>
Facet columns by explicitly expanded categorical slots.
Sourcepub fn facet_wrap_cells(
self,
values: impl CategoryInput,
columns: usize,
) -> Result<Self, AdapterError>
pub fn facet_wrap_cells( self, values: impl CategoryInput, columns: usize, ) -> Result<Self, AdapterError>
Wrap explicitly expanded categorical slots.
Source§impl<K: Facet> PlotAdapter<'_, K>
impl<K: Facet> PlotAdapter<'_, K>
Sourcepub fn facet_grid_row_cells(
self,
row: impl CategoryInput,
column: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn facet_grid_row_cells( self, row: impl CategoryInput, column: impl CategoryInput, ) -> Result<Self, AdapterError>
Cross explicitly row/cell-scoped facets, never inferring scope from length.
Source§impl<K: Facet> PlotAdapter<'_, K>
impl<K: Facet> PlotAdapter<'_, K>
Sourcepub fn facet_grid_column_cells(
self,
row: impl CategoryInput,
column: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn facet_grid_column_cells( self, row: impl CategoryInput, column: impl CategoryInput, ) -> Result<Self, AdapterError>
Cross explicitly row/cell-scoped facets, never inferring scope from length.
Source§impl<K: Facet> PlotAdapter<'_, K>
impl<K: Facet> PlotAdapter<'_, K>
Sourcepub fn facet_grid_cells(
self,
row: impl CategoryInput,
column: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn facet_grid_cells( self, row: impl CategoryInput, column: impl CategoryInput, ) -> Result<Self, AdapterError>
Cross explicitly row/cell-scoped facets, never inferring scope from length.
Source§impl<K: Facet> PlotAdapter<'_, K>
impl<K: Facet> PlotAdapter<'_, K>
Sourcepub fn facet_grid_columns_row(
self,
other: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn facet_grid_columns_row( self, other: impl CategoryInput, ) -> Result<Self, AdapterError>
Cross generated column identity with an explicitly scoped external facet.
Source§impl<K: Facet> PlotAdapter<'_, K>
impl<K: Facet> PlotAdapter<'_, K>
Sourcepub fn facet_grid_columns_column(
self,
other: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn facet_grid_columns_column( self, other: impl CategoryInput, ) -> Result<Self, AdapterError>
Cross generated column identity with an explicitly scoped external facet.
Source§impl<K: Facet> PlotAdapter<'_, K>
impl<K: Facet> PlotAdapter<'_, K>
Sourcepub fn facet_grid_columns_row_cells(
self,
other: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn facet_grid_columns_row_cells( self, other: impl CategoryInput, ) -> Result<Self, AdapterError>
Cross generated column identity with an explicitly scoped external facet.
Source§impl<K: Facet> PlotAdapter<'_, K>
impl<K: Facet> PlotAdapter<'_, K>
Sourcepub fn facet_grid_columns_column_cells(
self,
other: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn facet_grid_columns_column_cells( self, other: impl CategoryInput, ) -> Result<Self, AdapterError>
Cross generated column identity with an explicitly scoped external facet.
Source§impl<'source, K: Marker> PlotAdapter<'source, K>
impl<'source, K: Marker> PlotAdapter<'source, K>
Sourcepub fn into_parts(self) -> (Plot<K>, BindingMetadata<K>)
pub fn into_parts(self) -> (Plot<K>, BindingMetadata<K>)
End source lookup and move out the native Plot with its binding metadata.
This does not render, prepare scientific data or retain the source borrow. Keep both returned values from the same configuration together.
use lichtung_plot_ndarray::{Scatter, plots::PlotKind};
use ndarray::array;
let (plot, metadata) = {
let source = array![[0., 1.], [1., 0.]];
let adapted = Scatter::from_data(source.view(), 0, 1)?;
adapted.into_parts()
};
let restored = Scatter::from_parts(plot, metadata);
assert_eq!(restored.kind(), PlotKind::Scatter);Sourcepub fn labels(self, labels: Labels) -> Self
pub fn labels(self, labels: Labels) -> Self
Replace the authored label policy, retaining captured variable identities.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Sourcepub fn source_rows(
self,
values: impl SourceRowsInput,
) -> Result<Self, AdapterError>where
K: SourceRows,
pub fn source_rows(
self,
values: impl SourceRowsInput,
) -> Result<Self, AdapterError>where
K: SourceRows,
Bind unique exact IDs, never repeating row IDs across expanded cells.
Examples found in repository?
11fn main() -> Result<(), Box<dyn std::error::Error>> {
12 let mut arguments = std::env::args_os().skip(1);
13 let directory = match arguments.next() {
14 Some(path) if !path.is_empty() => std::path::PathBuf::from(path),
15 Some(_) => return Err("output directory must not be empty".into()),
16 None => std::env::current_dir()?,
17 };
18 if arguments.next().is_some() {
19 return Err("usage: strided_heatmap [output-directory]".into());
20 }
21 std::fs::create_dir_all(&directory)?;
22 // ANCHOR: strided-values
23 // Interleaved quality-control columns are deliberately excluded by the view.
24 let measurements = array![
25 [0.2, 99.0, 0.8, 99.0, 1.4, 99.0, 1.7, 99.0],
26 [0.1, 99.0, 0.6, 99.0, 1.1, 99.0, 1.3, 99.0],
27 [-0.1, 99.0, -0.5, 99.0, -0.9, 99.0, -1.4, 99.0],
28 [0.0, 99.0, 0.3, 99.0, 0.9, 99.0, 1.2, 99.0],
29 ];
30 let times = ["0 h", "2 h", "6 h", "12 h"];
31 let programs = [
32 "Inflammation",
33 "Stress response",
34 "Cell cycle",
35 "DNA repair",
36 ];
37 let present = array![
38 [true, true, true, true],
39 [true, true, true, true],
40 [true, false, true, true],
41 [true, true, true, true],
42 ];
43 let highlights = array![
44 [false, false, false, true],
45 [false, false, false, false],
46 [false, false, false, true],
47 [false, false, false, false],
48 ];
49 let cell_ids = array![
50 [101u64, 102, 103, 104],
51 [105, 106, 107, 108],
52 [109, 110, 111, 112],
53 [113, 114, 115, 116]
54 ];
55 let heatmap = nd::Heatmap::new((measurements.slice(s![.., ..;2]), present.view()))?
56 .highlight_cells(highlights.view())?
57 .source_rows(cell_ids.view())?;
58 // ANCHOR_END: strided-values
59 // ANCHOR: strided-plot
60 heatmap
61 .labels(Labels::raw())
62 .x_labels(times)?
63 .y_labels(programs)?
64 .x_label("Time after stimulus")
65 .y_label("Response program")
66 .color_label("Response (log2 fold change)")
67 .continuous_color_scale(ContinuousColorScale::diverging(
68 0.0,
69 None,
70 Some(ColorDomain::exact(-2.0, 2.0)?),
71 )?)
72 .size(780, 480)
73 .title("Response programs from a strided assay matrix")
74 .caption("Synthetic illustration · alternate source columns · one missing cell · no inferred clustering")
75 .svg(directory.join("strided_heatmap.svg"))?
76 .svg_preserve_text(directory.join("strided_heatmap_text.svg"))?;
77 // ANCHOR_END: strided-plot
78 Ok(())
79}Sourcepub fn facet(self, facet: FacetSpec) -> Selfwhere
K: Facet,
pub fn facet(self, facet: FacetSpec) -> Selfwhere
K: Facet,
Apply a complete native facet without reinterpreting its slots.
Sourcepub fn facet_row(self, values: impl CategoryInput) -> Result<Self, AdapterError>where
K: Facet,
pub fn facet_row(self, values: impl CategoryInput) -> Result<Self, AdapterError>where
K: Facet,
Split panel rows by a row-scoped categorical variable.
Sourcepub fn facet_column(
self,
values: impl CategoryInput,
) -> Result<Self, AdapterError>where
K: Facet,
pub fn facet_column(
self,
values: impl CategoryInput,
) -> Result<Self, AdapterError>where
K: Facet,
Split panel columns by a row-scoped categorical variable.
Sourcepub fn facet_grid(
self,
row: impl CategoryInput,
column: impl CategoryInput,
) -> Result<Self, AdapterError>where
K: Facet,
pub fn facet_grid(
self,
row: impl CategoryInput,
column: impl CategoryInput,
) -> Result<Self, AdapterError>where
K: Facet,
Cross two row-scoped categorical variables, replacing the complete facet.
Sourcepub fn facet_wrap(
self,
values: impl CategoryInput,
columns: usize,
) -> Result<Self, AdapterError>where
K: Facet,
pub fn facet_wrap(
self,
values: impl CategoryInput,
columns: usize,
) -> Result<Self, AdapterError>where
K: Facet,
Wrap a row-scoped categorical variable into a positive number of columns.
Sourcepub fn facet_scales(self, scales: FacetScales) -> Result<Self, AdapterError>where
K: Facet,
pub fn facet_scales(self, scales: FacetScales) -> Result<Self, AdapterError>where
K: Facet,
Change scale sharing on an existing facet; each new facet resets this policy.
Source§impl<K: Marker> PlotAdapter<'static, K>
impl<K: Marker> PlotAdapter<'static, K>
Sourcepub fn from_parts(plot: Plot<K>, metadata: BindingMetadata<K>) -> Self
pub fn from_parts(plot: Plot<K>, metadata: BindingMetadata<K>) -> Self
Restore a native Plot and its metadata without a lookup source.
No scientific validation or version check runs here. The caller must
supply the matching Plot/metadata configuration; the family marker alone
does not establish that they came from the same version.
Direct variable bindings remain available; selectors need an explicit
source through Self::from_parts_with_data.
Metadata from another family cannot be paired with this Plot:
use lichtung_plot_ndarray::{kind, Plot, Scatter, binding::BindingMetadata};
fn wrong_family(plot: Plot<kind::Scatter>, metadata: BindingMetadata<kind::Line>) {
let _ = Scatter::from_parts(plot, metadata);
}Sourcepub fn from_parts_with_data<'source>(
plot: Plot<K>,
metadata: BindingMetadata<K>,
source: impl ArraySource + 'source,
) -> Result<PlotAdapter<'source, K>, AdapterError>
pub fn from_parts_with_data<'source>( plot: Plot<K>, metadata: BindingMetadata<K>, source: impl ArraySource + 'source, ) -> Result<PlotAdapter<'source, K>, AdapterError>
Restore a matching Plot/metadata pair with a new array lookup context.
Validates the source’s structural validity shape exactly as from_data
does, without rebinding existing values, rendering or scientific preflight.
The source height need not equal the old Plot’s slots; subsequent bindings
retain their existing domain-specific alignment checks.
The caller must keep the Plot and metadata from the same configuration.
Source§impl<K: Hue> PlotAdapter<'_, K>
impl<K: Hue> PlotAdapter<'_, K>
Sourcepub fn hue(self, values: impl CategoryInput) -> Result<Self, AdapterError>
pub fn hue(self, values: impl CategoryInput) -> Result<Self, AdapterError>
Bind row-scoped native hue from a column or categorical vector.
Source§impl<K: Group> PlotAdapter<'_, K>
impl<K: Group> PlotAdapter<'_, K>
Sourcepub fn group(self, values: impl CategoryInput) -> Result<Self, AdapterError>
pub fn group(self, values: impl CategoryInput) -> Result<Self, AdapterError>
Bind row-scoped native group from a column or categorical vector.
Source§impl<K: Series> PlotAdapter<'_, K>
impl<K: Series> PlotAdapter<'_, K>
Sourcepub fn series(self, values: impl CategoryInput) -> Result<Self, AdapterError>
pub fn series(self, values: impl CategoryInput) -> Result<Self, AdapterError>
Bind row-scoped native series from a column or categorical vector.
Source§impl<K: ExactFamily> PlotAdapter<'_, K>
impl<K: ExactFamily> PlotAdapter<'_, K>
Source§impl<K: Significance<Attached>> PlotAdapter<'_, K>
impl<K: Significance<Attached>> PlotAdapter<'_, K>
Sourcepub fn significance_attached(
self,
target: impl SignificanceTargets,
marks: impl SignificanceMarks,
) -> Result<Self, AdapterError>
pub fn significance_attached( self, target: impl SignificanceTargets, marks: impl SignificanceMarks, ) -> Result<Self, AdapterError>
Bind results independently of the primary observation count and append in supplied order.
Sourcepub fn significance_attached_from_data(
self,
source: impl ArraySource,
target: impl SignificanceTargets,
marks: impl SignificanceMarks,
) -> Result<Self, AdapterError>
pub fn significance_attached_from_data( self, source: impl ArraySource, target: impl SignificanceTargets, marks: impl SignificanceMarks, ) -> Result<Self, AdapterError>
Append results from a separate actual source capture.
Source§impl<K: Significance<Attached>> PlotAdapter<'_, K>
impl<K: Significance<Attached>> PlotAdapter<'_, K>
Sourcepub fn significance_attached_in_facet(
self,
target: impl SignificanceTargets,
marks: impl SignificanceMarks,
facet: impl SignificanceFacets,
) -> Result<Self, AdapterError>
pub fn significance_attached_in_facet( self, target: impl SignificanceTargets, marks: impl SignificanceMarks, facet: impl SignificanceFacets, ) -> Result<Self, AdapterError>
Bind results independently of the primary observation count and append in supplied order.
Sourcepub fn significance_attached_in_facet_from_data(
self,
source: impl ArraySource,
target: impl SignificanceTargets,
marks: impl SignificanceMarks,
facet: impl SignificanceFacets,
) -> Result<Self, AdapterError>
pub fn significance_attached_in_facet_from_data( self, source: impl ArraySource, target: impl SignificanceTargets, marks: impl SignificanceMarks, facet: impl SignificanceFacets, ) -> Result<Self, AdapterError>
Append results from a separate actual source capture.
Source§impl<K: Significance<Attached>> PlotAdapter<'_, K>
impl<K: Significance<Attached>> PlotAdapter<'_, K>
Sourcepub fn significance_attached_in_grid(
self,
target: impl SignificanceTargets,
marks: impl SignificanceMarks,
row: impl CategoryInput,
column: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn significance_attached_in_grid( self, target: impl SignificanceTargets, marks: impl SignificanceMarks, row: impl CategoryInput, column: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind results independently of the primary observation count and append in supplied order.
Sourcepub fn significance_attached_in_grid_from_data(
self,
source: impl ArraySource,
target: impl SignificanceTargets,
marks: impl SignificanceMarks,
row: impl CategoryInput,
column: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn significance_attached_in_grid_from_data( self, source: impl ArraySource, target: impl SignificanceTargets, marks: impl SignificanceMarks, row: impl CategoryInput, column: impl CategoryInput, ) -> Result<Self, AdapterError>
Append results from a separate actual source capture.
Source§impl<K: Significance<Pairwise>> PlotAdapter<'_, K>
impl<K: Significance<Pairwise>> PlotAdapter<'_, K>
Sourcepub fn significance_pairwise(
self,
left: impl SignificanceTargets,
right: impl SignificanceTargets,
marks: impl SignificanceMarks,
) -> Result<Self, AdapterError>
pub fn significance_pairwise( self, left: impl SignificanceTargets, right: impl SignificanceTargets, marks: impl SignificanceMarks, ) -> Result<Self, AdapterError>
Bind results independently of the primary observation count and append in supplied order.
Sourcepub fn significance_pairwise_from_data(
self,
source: impl ArraySource,
left: impl SignificanceTargets,
right: impl SignificanceTargets,
marks: impl SignificanceMarks,
) -> Result<Self, AdapterError>
pub fn significance_pairwise_from_data( self, source: impl ArraySource, left: impl SignificanceTargets, right: impl SignificanceTargets, marks: impl SignificanceMarks, ) -> Result<Self, AdapterError>
Append results from a separate actual source capture.
Source§impl<K: Significance<Pairwise>> PlotAdapter<'_, K>
impl<K: Significance<Pairwise>> PlotAdapter<'_, K>
Sourcepub fn significance_pairwise_in_facet(
self,
left: impl SignificanceTargets,
right: impl SignificanceTargets,
marks: impl SignificanceMarks,
facet: impl SignificanceFacets,
) -> Result<Self, AdapterError>
pub fn significance_pairwise_in_facet( self, left: impl SignificanceTargets, right: impl SignificanceTargets, marks: impl SignificanceMarks, facet: impl SignificanceFacets, ) -> Result<Self, AdapterError>
Bind results independently of the primary observation count and append in supplied order.
Sourcepub fn significance_pairwise_in_facet_from_data(
self,
source: impl ArraySource,
left: impl SignificanceTargets,
right: impl SignificanceTargets,
marks: impl SignificanceMarks,
facet: impl SignificanceFacets,
) -> Result<Self, AdapterError>
pub fn significance_pairwise_in_facet_from_data( self, source: impl ArraySource, left: impl SignificanceTargets, right: impl SignificanceTargets, marks: impl SignificanceMarks, facet: impl SignificanceFacets, ) -> Result<Self, AdapterError>
Append results from a separate actual source capture.
Source§impl<K: Significance<Pairwise>> PlotAdapter<'_, K>
impl<K: Significance<Pairwise>> PlotAdapter<'_, K>
Sourcepub fn significance_pairwise_in_grid(
self,
left: impl SignificanceTargets,
right: impl SignificanceTargets,
marks: impl SignificanceMarks,
row: impl CategoryInput,
column: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn significance_pairwise_in_grid( self, left: impl SignificanceTargets, right: impl SignificanceTargets, marks: impl SignificanceMarks, row: impl CategoryInput, column: impl CategoryInput, ) -> Result<Self, AdapterError>
Bind results independently of the primary observation count and append in supplied order.
Sourcepub fn significance_pairwise_in_grid_from_data(
self,
source: impl ArraySource,
left: impl SignificanceTargets,
right: impl SignificanceTargets,
marks: impl SignificanceMarks,
row: impl CategoryInput,
column: impl CategoryInput,
) -> Result<Self, AdapterError>
pub fn significance_pairwise_in_grid_from_data( self, source: impl ArraySource, left: impl SignificanceTargets, right: impl SignificanceTargets, marks: impl SignificanceMarks, row: impl CategoryInput, column: impl CategoryInput, ) -> Result<Self, AdapterError>
Append results from a separate actual source capture.
Trait Implementations§
Source§impl<K: Marker> From<PlotAdapter<'_, K>> for Plot<K>
impl<K: Marker> From<PlotAdapter<'_, K>> for Plot<K>
Source§fn from(adapter: PlotAdapter<'_, K>) -> Self
fn from(adapter: PlotAdapter<'_, K>) -> Self
Auto Trait Implementations§
impl<'source, K> !RefUnwindSafe for PlotAdapter<'source, K>
impl<'source, K> !Send for PlotAdapter<'source, K>
impl<'source, K> !Sync for PlotAdapter<'source, K>
impl<'source, K> !UnwindSafe for PlotAdapter<'source, K>
impl<'source, K> Forget for PlotAdapter<'source, K>
impl<'source, K> Freeze for PlotAdapter<'source, K>where
*const ArcInner<()> is !null: Freeze,
PhantomData<ArcInner<()>>: Freeze,
*const ArcInner<String> is !null: Freeze,
PhantomData<ArcInner<String>>: Freeze,
*const ArcInner<Vec<FontFamily>> is !null: Freeze,
PhantomData<ArcInner<Vec<FontFamily>>>: Freeze,
*const ArcInner<TextInstructions> is !null: Freeze,
PhantomData<ArcInner<TextInstructions>>: Freeze,
*const ArcInner<SharedPayload> is !null: Freeze,
PhantomData<ArcInner<SharedPayload>>: Freeze,
PhantomData<K>: Freeze,
*const RcInner<dyn ArraySource + 'source> is !null: Freeze,
PhantomData<RcInner<dyn ArraySource + 'source>>: Freeze,
*const ArcInner<BTreeMap<String, String>> is !null: Freeze,
PhantomData<ArcInner<BTreeMap<String, String>>>: Freeze,
*const ArcInner<BTreeMap<String, CapturedLabel>> is !null: Freeze,
PhantomData<ArcInner<BTreeMap<String, CapturedLabel>>>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<[String]> is !null: Freeze,
PhantomData<ArcInner<[String]>>: Freeze,
*const ArcInner<[u32]> is !null: Freeze,
PhantomData<ArcInner<[u32]>>: Freeze,
*const ArcInner<[u64]> is !null: Freeze,
PhantomData<ArcInner<[u64]>>: Freeze,
*const ArcInner<KeyValues> is !null: Freeze,
PhantomData<ArcInner<KeyValues>>: Freeze,
*const ArcInner<(RawKey, Arc<str>)> is !null: Freeze,
PhantomData<ArcInner<(RawKey, Arc<str>)>>: Freeze,
*const ArcInner<SourceInfo> is !null: Freeze,
PhantomData<ArcInner<SourceInfo>>: Freeze,
*const ArcInner<SourceProjection> is !null: Freeze,
PhantomData<ArcInner<SourceProjection>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<RawKey>: Freeze,
PhantomData<(String, String)>: Freeze,
impl<'source, K> Move for PlotAdapter<'source, K>
impl<'source, K> Unpin for PlotAdapter<'source, K>where
K: Unpin,
Arc<()>: Unpin,
Arc<String>: Unpin,
Arc<Vec<FontFamily>>: Unpin,
Arc<TextInstructions>: Unpin,
Arc<SharedPayload>: Unpin,
Rc<dyn ArraySource + 'source>: Unpin,
Arc<BTreeMap<String, String>>: Unpin,
Arc<BTreeMap<String, CapturedLabel>>: Unpin,
Arc<str>: Unpin,
Arc<[String]>: Unpin,
Arc<[u32]>: Unpin,
Arc<[u64]>: Unpin,
Arc<KeyValues>: Unpin,
Arc<(RawKey, Arc<str>)>: Unpin,
Arc<SourceInfo>: Unpin,
Arc<SourceProjection>: Unpin,
*const u8 is !null: Unpin,
Arc<[u8]>: Unpin,
Box<RawKey>: Unpin,
impl<'source, K> UnsafeUnpin for PlotAdapter<'source, K>where
*const ArcInner<()> is !null: UnsafeUnpin,
PhantomData<ArcInner<()>>: UnsafeUnpin,
*const ArcInner<String> is !null: UnsafeUnpin,
PhantomData<ArcInner<String>>: UnsafeUnpin,
*const ArcInner<Vec<FontFamily>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<FontFamily>>>: UnsafeUnpin,
*const ArcInner<TextInstructions> is !null: UnsafeUnpin,
PhantomData<ArcInner<TextInstructions>>: UnsafeUnpin,
*const ArcInner<SharedPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SharedPayload>>: UnsafeUnpin,
PhantomData<K>: UnsafeUnpin,
*const RcInner<dyn ArraySource + 'source> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ArraySource + 'source>>: UnsafeUnpin,
*const ArcInner<BTreeMap<String, String>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BTreeMap<String, String>>>: UnsafeUnpin,
*const ArcInner<BTreeMap<String, CapturedLabel>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BTreeMap<String, CapturedLabel>>>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<[String]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[String]>>: UnsafeUnpin,
*const ArcInner<[u32]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u32]>>: UnsafeUnpin,
*const ArcInner<[u64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u64]>>: UnsafeUnpin,
*const ArcInner<KeyValues> is !null: UnsafeUnpin,
PhantomData<ArcInner<KeyValues>>: UnsafeUnpin,
*const ArcInner<(RawKey, Arc<str>)> is !null: UnsafeUnpin,
PhantomData<ArcInner<(RawKey, Arc<str>)>>: UnsafeUnpin,
*const ArcInner<SourceInfo> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceInfo>>: UnsafeUnpin,
*const ArcInner<SourceProjection> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceProjection>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RawKey>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.