pub struct PositionParams {
pub width: f64,
pub height: f64,
pub group_order: Option<Vec<String>>,
}Expand description
Parameters for position adjustments.
Fields§
§width: f64§height: f64§group_order: Option<Vec<String>>The whole layer’s group rank order (review #167 finding 2), set by
build::compute_position_per_panel from Position::group_order
before splitting the layer’s rows into panels. A per-panel
position (PositionDodge/PositionDodge2) ranks groups from this
— the whole layer’s first-appearance order — rather than
recomputing it from whatever order each panel’s own rows happen to
list groups in, so every panel draws a given group on the same
side (matching 0.22.2 and ggplot2 4.0.3’s global group id).
None outside the per-panel path (or for positions that don’t
override group_order), in which case each position falls back
to its previous, locally-computed order.
Trait Implementations§
Source§impl Clone for PositionParams
impl Clone for PositionParams
Source§impl Debug for PositionParams
impl Debug for PositionParams
Auto Trait Implementations§
impl Freeze for PositionParams
impl RefUnwindSafe for PositionParams
impl Send for PositionParams
impl Sync for PositionParams
impl Unpin for PositionParams
impl UnsafeUnpin for PositionParams
impl UnwindSafe for PositionParams
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<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