pub struct QqPlot { /* private fields */ }Expand description
A normal Q–Q plot as a drawable series (coordinate space (f64, f64) =
(theoretical quantile, sample quantile)).
Points that fall on the reference line indicate the sample is consistent with a normal distribution; systematic departures (curvature, S-shapes) reveal skew or heavy tails.
Implementations§
Source§impl QqPlot
impl QqPlot
Sourcepub fn from_data(data: &[f64]) -> Result<Self, StatsError>
pub fn from_data(data: &[f64]) -> Result<Self, StatsError>
Build from a raw data sample. Uses Blom plotting positions
((i - 3/8) / (n + 1/4)) for the theoretical quantiles and a reference
line through the sample/theoretical first and third quartiles (like R’s
qqline).
§Errors
StatsError::EmptyInputif no finite values remain.
Sourcepub fn reference_line(self, show: bool) -> Self
pub fn reference_line(self, show: bool) -> Self
Show/hide the reference line.
Sourcepub fn marker_radius(self, radius: u32) -> Self
pub fn marker_radius(self, radius: u32) -> Self
Set the marker radius in pixels.
Sourcepub fn line_width(self, width: u32) -> Self
pub fn line_width(self, width: u32) -> Self
Set the reference-line width in pixels.
Trait Implementations§
Source§impl<DB: DrawingBackend> Drawable<DB> for QqPlot
impl<DB: DrawingBackend> Drawable<DB> for QqPlot
Auto Trait Implementations§
impl Freeze for QqPlot
impl RefUnwindSafe for QqPlot
impl Send for QqPlot
impl Sync for QqPlot
impl Unpin for QqPlot
impl UnsafeUnpin for QqPlot
impl UnwindSafe for QqPlot
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<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: Drawable<DB> + 'b,
&'a T: for<'a> PointCollection<'a, Coord>,
Coord: Clone,
DB: DrawingBackend,
impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: Drawable<DB> + 'b,
&'a T: for<'a> PointCollection<'a, Coord>,
Coord: Clone,
DB: DrawingBackend,
Source§fn into_dyn(self) -> DynElement<'b, DB, Coord>
fn into_dyn(self) -> DynElement<'b, DB, Coord>
Make the conversion