pub enum Oob {
Censor,
Squish,
}Expand description
ggplot2’s “out of bounds” handling for a continuous colour scale’s fixed
with_limits domain — e.g.
fixing [-1, 1] for a correlation matrix so the colours (not just the
legend) reflect that fixed range rather than whatever the data happens
to span.
Variants§
Censor
A value outside the limits maps to the scale’s na_value (default
grey, ggplot2’s "grey50"/(127, 127, 127)) — its own
with_na_value, not the geom’s default colour, the same way a
genuinely missing (NA) value is rendered.
Squish
A value outside the limits is clamped to the nearest limit before
mapping, so it still gets the end colour instead of na_value.
Trait Implementations§
impl Copy for Oob
impl Eq for Oob
impl StructuralPartialEq for Oob
Auto Trait Implementations§
impl Freeze for Oob
impl RefUnwindSafe for Oob
impl Send for Oob
impl Sync for Oob
impl Unpin for Oob
impl UnsafeUnpin for Oob
impl UnwindSafe for Oob
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more