plotAddBox#
Purpose#
Adds a box graph to an existing graph.
Format#
- plotAddBox([myPlot, ]grp, y)#
- Parameters:
myPlot (struct) – Optional argument. A
plotControlstructuregrp (1xM vector) – contains the group numbers corresponding to each column of y data. If scalar 0, a sequence from 1 to
cols(y)will be generated automatically for the x-axis.y (NxM matrix) – Each column represents the set of y values for an individual percentiles box symbol.
Remarks#
plotAddBox() may only add a box graph to 2-D graphs.
This function will not change any of the current graph’s settings other than to resize the view as necessary to display the new curve.
Examples#
// Create random data for three groups
x = rndn(100, 3);
// Create initial box plot
plotBox(0, x);
// Add a second set of box plots
plotAddBox(0, rndn(100, 2));
See also
Functions plotAddHist(), plotAddHistF(), plotAddHistP(), plotAddPolar(), plotAddXY()