adding a horizontal line to a box plot


I am using Gauss 16. I am plotting a boxplot of several vectors (12) and I would like to add a horizontal line as a reference. I could not figure out how to do this. Any recommendations?



1 Answer


You can use the function plotAddXY to add a line to any 2-D plot. For example:

// Create some data for box plot
x = rndn(100,4);

// Draw box plot
plotBox(0, x);

// Create coordinates for line
x_l = { 0, 5 };
y_l = { 0, 0 };

// Add line to box plot
plotAddXY(x_l, y_l);

You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy