20#ifndef jkqtpgraphsboxplotbase_H
21#define jkqtpgraphsboxplotbase_H
27#include "jkqtplotter/jkqtptools.h"
28#include "jkqtplotter/jkqtplotter_imexport.h"
29#include "jkqtplotter/jkqtpimagetools.h"
30#include "jkqtplotter/jkqtpgraphsbase.h"
31#include "jkqtplotter/graphs/jkqtpboxplotstylingmixins.h"
32#include "jkqtplotter/jkqtpgraphsbasestylingmixins.h"
172 if (sortData==Unsorted)
return i;
173 return sortedIndices.value(i,i);
250 void setData(
double pos,
double min,
double q25,
double median,
double mean,
double q75,
double max);
base class for 2D plotter classes (used by the plotter widget JKQTPlotter)
Definition jkqtpbaseplotter.h:394
Tbaseclass for a single (notched) boxplot as a "geometric element", where the data is directly given ...
Definition jkqtpboxplotbase.h:192
bool drawMinMax
indicates whether to draw the percentiles
Definition jkqtpboxplotbase.h:279
double percentile75
the 75% percentile value to be used for the boxplot
Definition jkqtpboxplotbase.h:287
bool getDrawMean() const
indicates whether to draw the mean
void setMin(double __value)
the minimum value to be used for the boxplot
JKQTPBoxplotElementBase(JKQTBasePlotter *parent=nullptr)
class constructor
void setMedianConfidenceIntervalWidth(double __value)
the width of the confidence interval around the median
void setDrawMean(bool __value)
indicates whether to draw the mean
void setPos(double __value)
the position of the boxplot on the "other" axis
bool drawMedian
indicates whether to draw the median
Definition jkqtpboxplotbase.h:277
void setDrawMedian(bool __value)
indicates whether to draw the median
double min
the minimum value to be used for the boxplot
Definition jkqtpboxplotbase.h:281
bool getDrawMinMax() const
indicates whether to draw the percentiles
double medianConfidenceIntervalWidth
the width of the confidence interval around the median
Definition jkqtpboxplotbase.h:269
void setMedian(double __value)
the median value to be used for the boxplot
double median
the median value to be used for the boxplot
Definition jkqtpboxplotbase.h:267
double getPercentile25() const
the 25% percentile value to be used for the boxplot
double getMin() const
the minimum value to be used for the boxplot
double getPercentile75() const
the 75% percentile value to be used for the boxplot
void setData(double pos, double min, double q25, double median, double mean, double q75, double max)
set all properties of the plot at once
void setMax(double __value)
the maximum value to be used for the boxplot
double getMax() const
the maximum value to be used for the boxplot
double mean
the mean value to be used for the boxplot
Definition jkqtpboxplotbase.h:273
void setDrawMinMax(bool __value)
indicates whether to draw the percentiles
JKQTPBoxplotElementBase(JKQTPlotter *parent)
class constructor
virtual QColor getKeyLabelColor() const override
returns the color to be used for the key label
double getMedian() const
the median value to be used for the boxplot
virtual void setColor(QColor c)
set the color of the graph (colors all elements, based on the given color c )
void setMean(double __value)
the mean value to be used for the boxplot
double getMedianConfidenceIntervalWidth() const
the width of the confidence interval around the median
bool getDrawNotch() const
indicates whether to draw a notch with width medianConfidenceIntervalWidth
void setDrawNotch(bool __value)
indicates whether to draw a notch with width medianConfidenceIntervalWidth
void setPercentile75(double __value)
the 75% percentile value to be used for the boxplot
bool getDrawMedian() const
indicates whether to draw the median
double getPos() const
the position of the boxplot on the "other" axis
double pos
the position of the boxplot on the "other" axis
Definition jkqtpboxplotbase.h:265
bool drawMean
indicates whether to draw the mean
Definition jkqtpboxplotbase.h:275
void setPercentile25(double __value)
the 25% percentile value to be used for the boxplot
double percentile25
the 25% percentile value to be used for the boxplot
Definition jkqtpboxplotbase.h:285
double max
the maximum value to be used for the boxplot
Definition jkqtpboxplotbase.h:283
bool drawNotch
indicates whether to draw a notch with width medianConfidenceIntervalWidth
Definition jkqtpboxplotbase.h:271
double getMean() const
the mean value to be used for the boxplot
Base class for graphs representing a series of boxplot, elements.
Definition jkqtpboxplotbase.h:51
void setMedianConfidenceColumn(size_t __value)
the column that contains the confidence interval width of the median (e.g. 1.57*IQR/sqrt(n) )....
DataSortOrder sortData
if !=Unsorted, the data is sorted before plotting
Definition jkqtpboxplotbase.h:164
void setDataSortOrder(DataSortOrder __value)
if !=Unsorted, the data is sorted before plotting
int getPositionColumn() const
the column that contains the x-component of the datapoints
int getMeanColumn() const
the column that contains the median-component of the datapoints.
int maxColumn
the column that contains the maximum-component of the datapoints
Definition jkqtpboxplotbase.h:158
int percentile25Column
the column that contains the 25% percentile-component of the datapoints
Definition jkqtpboxplotbase.h:160
void setPercentile25Column(size_t __value)
the column that contains the 25% percentile-component of the datapoints
int posColumn
the column that contains the x-component of the datapoints
Definition jkqtpboxplotbase.h:148
void setPercentile25Column(int __value)
the column that contains the 25% percentile-component of the datapoints
void setMedianColumn(size_t __value)
the column that contains the median-component of the datapoints
DataSortOrder getDataSortOrder() const
if !=Unsorted, the data is sorted before plotting
bool getUseRelativeBoxWidth() const
if set true, boxplot widths are calculated automatically, based on boxWidthRelative,...
int getMedianConfidenceColumn() const
the column that contains the confidence interval width of the median (e.g. 1.57*IQR/sqrt(n) )....
virtual void intSortData()
generates a map from unsorted to sorted data
virtual bool usesColumn(int c) const override
returns true if the given column is used by the graph
void setMinColumn(int __value)
the column that contains the minimum-component of the datapoints
int getMaxColumn() const
the column that contains the maximum-component of the datapoints
void setPositionColumn(int __value)
the column that contains the x-component of the datapoints
int getPercentile25Column() const
the column that contains the 25% percentile-component of the datapoints
bool useRelativeBoxWidth
if set true, boxplot widths are calculated automatically, based on boxWidthRelative,...
Definition jkqtpboxplotbase.h:145
QVector< int > sortedIndices
this array contains the order of indices, in which to access the data in the data columns
Definition jkqtpboxplotbase.h:166
int meanColumn
the column that contains the median-component of the datapoints.
Definition jkqtpboxplotbase.h:154
void setMedianColumn(int __value)
the column that contains the median-component of the datapoints
int getPercentile75Column() const
the column that contains the 75% percentile-component of the datapoints
void setMeanColumn(int __value)
the column that contains the median-component of the datapoints.
double getBoxWidthRelative() const
width of box in percent of distance between the current two posColumn values if we only plot one box&...
virtual void setColor(QColor c)
set the color of the graph (colors all elements, based on the given color c )
void setMaxColumn(int __value)
the column that contains the maximum-component of the datapoints
JKQTPBoxplotGraphBase(JKQTBasePlotter *parent=nullptr)
class constructor
void setUseRelativeBoxWidth(bool __value)
if set true, boxplot widths are calculated automatically, based on boxWidthRelative,...
double boxWidthRelative
width of box in percent of distance between the current two posColumn values if we only plot one box&...
Definition jkqtpboxplotbase.h:142
virtual QColor getKeyLabelColor() const override
returns the color to be used for the key label
void setMeanColumn(size_t __value)
the column that contains the median-component of the datapoints.
int percentile75Column
the column that contains the 75% percentile-component of the datapoints
Definition jkqtpboxplotbase.h:162
DataSortOrder
Sort order in a JKQTPBoxplotVerticalGraph (or one of its child classes)
Definition jkqtpboxplotbase.h:56
int getMedianColumn() const
the column that contains the median-component of the datapoints
void setPercentile75Column(int __value)
the column that contains the 75% percentile-component of the datapoints
void setPositionColumn(size_t __value)
the column that contains the x-component of the datapoints
void setBoxWidthRelative(double __value)
width of box in percent of distance between the current two posColumn values if we only plot one box&...
void setMinColumn(size_t __value)
the column that contains the minimum-component of the datapoints
int getDataIndex(int i) const
retrieves the index of the i-th element when data is sorted (after calling intSortData(),...
Definition jkqtpboxplotbase.h:171
void setDataSortOrder(int __value)
if !=Unsorted, the data is sorted before plotting
void setPercentile75Column(size_t __value)
the column that contains the 75% percentile-component of the datapoints
int minColumn
the column that contains the minimum-component of the datapoints
Definition jkqtpboxplotbase.h:156
int medianConfidenceColumn
the column that contains the confidence interval width of the median (e.g. 1.57*IQR/sqrt(n) )....
Definition jkqtpboxplotbase.h:152
int getMinColumn() const
the column that contains the minimum-component of the datapoints
void setMaxColumn(size_t __value)
the column that contains the maximum-component of the datapoints
int medianColumn
the column that contains the median-component of the datapoints
Definition jkqtpboxplotbase.h:150
Styling Mix-In for Boxplots.
Definition jkqtpboxplotstylingmixins.h:46
this virtual base class of the (data-column based) graphs, which are part of a JKQTPlotter plot and w...
Definition jkqtpgraphsbase.h:429
this virtual base class of every element, which is part of a JKQTPlotter plot and may appear in its k...
Definition jkqtpgraphsbase.h:62
plotter widget for scientific plots (uses JKQTBasePlotter to do the actual drawing)
Definition jkqtplotter.h:364
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89