BoxPlot

Draw a basic box-and-whisker plot. The plots are drawn centered at Y coordinates [0, 1, ..., N) unless the offset property is set to something else (which is useful for putting multiple box pots with different color boxes on the same figure).

Members

Functions

addData
This addData(R data)

Add data to the box plot. data may be any combination of ranges of ranges and individual ranges.

color
Color color()

The color that the boxes, whiskers and outliers are drawn in.

color
This color(Color newColor)

Setter.

nBoxes
int nBoxes()

The number of boxes currently on the plot.

offset
double offset()

The offset from zero at which the first box is centered.

offset
This offset(double newOffset)

Setter

Static functions

opCall
BoxPlot opCall(double whiskerPercentile = 0)

Create a BoxPlot. whiskerPercentile controls the percentile at which data points are considered outliers and plotted as individual points. For any x, a percentile of x is equivalent to a percentile of 1 - x. For example, if whiskerPercentile is either 0 or 1, no data is plotted as individual points and the whiskers extend all the way to the extrema.

Inherited Members

From Plot

hasLegend
bool hasLegend()

Returns true if this plot type supports legends, otherwise false.

toFigure
Figure toFigure()

Convenience method that instantiates a Figure object with this plot. Useful for creating single-plot figures w/o a lot of boilerplate.

toLabeledFigure
Figure toLabeledFigure()

Instantiates a Figure object with this plot and also places the default axes and tick labeling and title for the plot type, if any, on the Figure. If a plot type has no default labeling, simply forwards to toFigure().

leftMost
double leftMost()

The leftmost point on the plot.

rightMost
double rightMost()

The rightmost point on the plot.

topMost
double topMost()

The topmost point on the plot.

bottomMost
double bottomMost()

The bottommost point on the plot.

legendText
string legendText()
legendText
This legendText(string newText)

Meta