Class LABKEY.vis.Geom.Boxplot
The Boxplot Geom, used to generate box plots for a given set of data. In order to get multiple box plots for a set of data with a continuous x-axis scale, the user must define an accessor with the name "group" in the config.aes object of the {LABKEY.vis.Plot} or {LABKEY.vis.Layer} object. For example if the data looked like {x: 12, y: 35, name: "Alan"} the config.aes.group accessor could be "Alan", or a function: function(row){return row.name}. Each unique name would get a separate box plot. If aes.group is not present one boxplot will be generated for all of the data. This geom also supports the outlierColor, outlierShape, hoverText, outlierHoverText, and pointClickFn aesthetics from the {LABKEY.vis.Plot} and/or {LABKEY.vis.Layer} objects. Boxplots are drawn as follows:
- The top line of the box is the first quartile (Q1)
- The middle like is the second quartile (Q2, aka median)
- The bottom line is the third quartile (Q3)
- The whiskers extend to 3/2 times the inner quartile range (Q3 - Q1, aka IQR)
- All data points that are greater than 3/2 times the IQR are drawn as outliers
Defined in: geom.js.
Constructor Attributes | Constructor Name and Description |
---|---|
LABKEY.vis.Geom.Boxplot(config)
|
Config Attributes | Config Name and Description |
---|---|
(Optional) A string value used for the line colors in the box plot.
|
|
(Optional) A string value used for the fill color in the box plot.
|
|
(Optional) A used to set the width of the lines used in the box plot.
|
|
(Optional) A number between 0 and 1 used to set the opacity of the box plot.
|
|
(Optional) A string value used to set the fill color of the outliers.
|
|
(Optional) A number between 0 and 1 used to set the opacity of the outliers.
|
|
(Optional) A used to set the size of outliers.
|
|
(Optional) A string used to determine how to position the outliers.
|
|
(Optional) Used to toggle whether or not outliers are rendered.
|
- Parameters:
- {Object} config
- An object with the following properties: