Statistical Traces
-
Each box spans from quartile 1 (Q1) to quartile 3 (Q3).
The second quartile (Q2, i.e. the median) is marked by a line inside the box. The fences grow outward from the boxes’ edges, by default they span +/- 1.5 times the interquartile range (IQR: Q3-Q1), The sample mean and standard deviation as well as notches and the sample, outlier and suspected outliers points can be optionally added to the box plot. The values and positions corresponding to each boxes can be input using two signatures. The first signature expects users to supply the sample values in the
See morey
data array for vertical boxes (x
for horizontal boxes). By supplying anx
(y
) array, one box per distinctx
(y
) value is drawn If nox
(y
) {array} is provided, a single box is drawn. In this case, the box is positioned with the tracename
or withx0
(y0
) if provided. The second signature expects users to supply the boxes corresponding Q1, median and Q3 statistics in theq1
,median
andq3
data arrays respectively. Other box features relying on statistics namelylowerfence
,upperfence
,notchspan
can be set directly by the users. To have plotly compute them or to show sample points besides the boxes, users can set they
data array for vertical boxes (x
for horizontal boxes) to a 2D array with the outer length corresponding to the number of boxes in the traces and the inner length corresponding the sample size. -
The sample data from which statistics are computed is set in
x
for vertically spanning histograms and iny
for horizontally spanning histograms.Binning options are set
See morexbins
andybins
respectively if no aggregation data is provided. -
The sample data from which statistics are computed is set in
x
andy
(wherex
andy
represent marginal distributions, binning is set inxbins
andybins
in this case) orz
(wherez
represent the 2D distribution and binning set, binning is set byx
andy
in this case).The resulting distribution is visualized as a heatmap.
See more -
The sample data from which statistics are computed is set in
x
andy
(wherex
andy
represent marginal distributions, binning is set inxbins
andybins
in this case) orz
(wherez
represent the 2D distribution and binning set, binning is set byx
andy
in this case).The resulting distribution is visualized as a contour plot.
See more -
In vertical (horizontal) violin plots, statistics are computed using
y
(x
) values.By supplying an
See morex
(y
) array, one violin per distinct x (y) value is drawn If nox
(y
) {array} is provided, a single violin is drawn. That violin position is then positioned with withname
or withx0
(y0
) if provided. -
Splom traces generate scatter plot matrix visualizations.
Each splom
See moredimensions
items correspond to a generated axis. Values for each of those dimensions are set indimensions[i].values
. Splom traces support allscattergl
marker style attributes. Specifylayout.grid
attributes and/or layout x-axis and y-axis attributes for more control over the axis positioning and style.Declaration
Swift
public struct ScatterPlotMatrix : Trace