pub enum Facet {
None,
Wrap {
var: String,
ncol: Option<usize>,
scales: FacetScales,
labeller: FacetLabeller,
levels: Option<Vec<String>>,
vertical: bool,
as_table: bool,
strip_position: StripPosition,
space: FacetSpace,
},
Grid {
row_var: Option<String>,
col_var: Option<String>,
scales: FacetScales,
labeller: FacetLabeller,
space: FacetSpace,
switch: FacetSwitch,
row_levels: Option<Vec<String>>,
col_levels: Option<Vec<String>>,
margins: bool,
},
}Expand description
Facet specification.
Variants§
None
Wrap
Fields
§
scales: FacetScales§
labeller: FacetLabeller§
levels: Option<Vec<String>>Explicit panel order (ggplot2’s factor levels): every level gets
a panel, even with no data (drop = FALSE), and rows whose value
isn’t listed are dropped. None = values in first-appearance
order. Set with GGPlot::facet_levels.
§
strip_position: StripPositionThe side each panel’s strip sits on (strip.position, #412).
§
space: FacetSpaceProportional panel sizes (ggplot2 3.5’s facet_wrap(space =),
#412): free x for a single row, free y for a single column.
Grid
Fields
§
scales: FacetScales§
labeller: FacetLabeller§
space: FacetSpaceProportional panel sizing (R’s space =).
§
switch: FacetSwitchColumn strips on top and row strips on the right, unless
switched (switch, #412).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Facet
impl Freeze for Facetwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, FacetLabeller)>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<String>: Freeze,
impl Move for Facet
impl RefUnwindSafe for Facet
impl Send for Facetwhere
RawVecInner: Send,
impl Sync for Facetwhere
RawVecInner: Sync,
impl Unpin for Facet
impl UnsafeUnpin for Facetwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, FacetLabeller)>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Facetwhere
RawVecInner: UnwindSafe,
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