Statistical Traces

  • Box

    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 y data array for vertical boxes (x for horizontal boxes). By supplying an x (y) array, one box per distinct x (y) value is drawn If no x (y) {array} is provided, a single box is drawn. In this case, the box is positioned with the trace name or with x0 (y0) if provided. The second signature expects users to supply the boxes corresponding Q1, median and Q3 statistics in the q1, median and q3 data arrays respectively. Other box features relying on statistics namely lowerfence, 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 the y 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.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Box<YData, XData, QData> : Trace, XYSubplot where YData : Plotable, XData : Plotable, QData : Plotable
  • The sample data from which statistics are computed is set in x for vertically spanning histograms and in y for horizontally spanning histograms.

    Binning options are set xbins and ybins respectively if no aggregation data is provided.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Histogram<XData, YData> : Trace, XYSubplot where XData : Plotable, YData : Plotable
  • The sample data from which statistics are computed is set in x and y (where x and y represent marginal distributions, binning is set in xbins and ybins in this case) or z (where z represent the 2D distribution and binning set, binning is set by x and y in this case).

    The resulting distribution is visualized as a heatmap.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Histogram2D<XData, YData, ZData> : Trace, XYSubplot where XData : Plotable, YData : Plotable, ZData : Plotable
  • The sample data from which statistics are computed is set in x and y (where x and y represent marginal distributions, binning is set in xbins and ybins in this case) or z (where z represent the 2D distribution and binning set, binning is set by x and y in this case).

    The resulting distribution is visualized as a contour plot.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Histogram2DContour<XData, YData, ZData> : Trace, XYSubplot where XData : Plotable, YData : Plotable, ZData : Plotable
  • In vertical (horizontal) violin plots, statistics are computed using y (x) values.

    By supplying an x (y) array, one violin per distinct x (y) value is drawn If no x (y) {array} is provided, a single violin is drawn. That violin position is then positioned with with name or with x0 (y0) if provided.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Violin<YData, XData> : Trace, XYSubplot where YData : Plotable, XData : Plotable
  • Parallel categories diagram for multidimensional categorical data.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct ParallelCategories : Trace, DomainSubplot
  • Splom traces generate scatter plot matrix visualizations.

    Each splom dimensions items correspond to a generated axis. Values for each of those dimensions are set in dimensions[i].values. Splom traces support all scattergl marker style attributes. Specify layout.grid attributes and/or layout x-axis and y-axis attributes for more control over the axis positioning and style.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct ScatterPlotMatrix : Trace
  • The data visualized as a point cloud set in x and y using the WebGl plotting engine.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct PointCloud<XYData> : Trace, XYSubplot where XYData : Plotable