plotAddHistF#
Purpose#
Adds a frequency histogram to an existing graph.
Format#
- plotAddHistF([myPlot, ]f, c)#
- Parameters:
myPlot (struct) – Optional argument. A
plotControlstructure.f (Nx1 vector) – frequencies to be graphed.
c (Nx1 vector) – numeric labels for categories. If this is a scalar 0, a sequence from 1 to
rows(f)will be created.
Remarks#
plotAddHistF() may only add a histogram 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 frequency counts and category labels
f1 = 10|25|40|15|10;
c = 1|2|3|4|5;
// Plot initial frequency histogram
plotHistF(f1, c);
// Add a second frequency histogram
f2 = 5|20|30|25|20;
plotAddHistF(f2, c);
See also
Functions plotAddBar(), plotAddHist(), plotAddHistP(), plotAddPolar(), plotAddXY()