QBoxPlot - Adding scatter points for outliers
-
I say hello to the Qt community with my first posting :-)
I am building some nice charts with the help of Qt Charts these days and now I need some help concerning the Box-and-Whiskers Plot (also called BoxPlot).
I built it with QBoxPlotSeries and QBoxSet, where I could set the values for the statistical numbers Median, LowerQuartile, UpperQuartile, LowerExtreme, UpperExtreme and Median. The UpperExtreme and the LowerExtreme are the max / min vaule of the data set and mark the ends of the whiskers.
The interquartile range (IQR) is defined as the distance between the lower quartile and the upper quartile of the data set. Now I want to follow the common definition of the Box-and-Whiskers Plot, where the ends of the whiskers are at maximum 1,5*IQR and values which are further away from the quartiles are plotted as extra scatter points (like in this graphic for example).
So how could I solve this? I didn't find an option for outliers in the architecure of QBoxPlotSeries / QBoxSet. Now I would calculate the IQR and set it as the max. values for UpperExtreme / LowerExtreme. But how to handle with the outlier points? How can I set them into the chart at the right position additionally?
Thanks a lot in advance!
-
Hello,
I think that you can use this library :
http://www.qcustomplot.com/index.php/demos/statisticaldemobest regards