plot2kill.plot

This file contains all of the plots types in Plot2kill, which can be drawn on screen using plot2kill.figure.Figure.

Copyright (C) 2010-2012 David Simcha

Members

Classes

BarPlot
class BarPlot

A basic bar plot.

BoxPlot
class 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).

ContinuousFunction
class ContinuousFunction

Plot a callable object on a range of values.

Dendrogram
class Dendrogram

A dendrogram is a tree of hierarchically clustered data such that the height of each split is proportional to the distance between clusters.

DiscreteFunction
class DiscreteFunction

Plot a callable object on a range of values.

FrequencyHistogram
class FrequencyHistogram

Creates a histogram with equal frequency binning instead of equal width binning. The scale of a FrequencyHistogram is the probability density scale.

HeatMap
class HeatMap

Class for drawing a heat map.

HeatScatter
class HeatScatter

Creates a heat map representing the density of a 2-d probability distribution. This is useful when you want to visualize a joint probability distribution but the sample size is so large that a scatter plot would have an overwhelming number of points.

Histogram
class Histogram

A class for plotting regular (equal-width) histograms.

LineGraph
class LineGraph

Class for drawing a line graph, i.e. a set of points connected by lines.

LinearFit
class LinearFit

This class creates a best-fit line, and is useful for adding to scatter plot figures. The default line color is red instead of black and the default width is two instead of one to make the best-fit line stand out against the default scatter plot settings.

Plot
class Plot

Abstract base class for all types of plot objects.

QQPlot
class QQPlot

Plots the quantiles of a set of data on the Y axis against the theoretical qualtiles or the quantiles of another set of data on the X axis.

RocCurve
class RocCurve

Plots a ROC curve, or a curve with sensitivity on the Y-axis and 1 - specificity on the X-axis. This is a useful metric for determining how well a test statistic discriminates between two classes. The following assumptions are made in this implementation:

ScatterPlot
class ScatterPlot

Class for drawing a scatter plot.

UniqueHistogram
class UniqueHistogram

Creates a histogram in which every unique value gets its own bin. Useful for histograms where the distribution is known to be discrete over a small set of values.

Enums

HistType
enum HistType

Controls whether a histogram plots counts or probability.

OutOfBounds
enum OutOfBounds

Determine behavior for elements outside of a fixed-border histogram's bounds.

Functions

groupedBar
BarPlot[] groupedBar(R1 centers, R2 data, double width, string[] legendText = null, Color[] colors = null)

Create an array of bar plots that, when inserted into a Figure, will effectively become a grouped bar plot.

groupedBar
BarPlot[] groupedBar(R1 centers, R2 data, R3 lowerErrors, R4 upperErrors, double width, string[] legendText = null, Color[] colors = null)

Create a grouped bar plot with error bars. lowerErrors and upperErrors must either have the same dimensions as data or be empty.

hierarchicalHeatMap
HeatMap hierarchicalHeatMap(R data, string[] rowNames = null, string[] colNames = null)

Convenience function that creates a hierarchically clustered heat map and, if provided, rearranges your row and column names according to the clustering.

stackedBar
BarPlot[] stackedBar(R1 centers, R2 data, double width, string[] legendText = null, Color[] colors = null)

Create a stacked bar plot. The usage mechanics are identical to those of the no error bar overload of groupedBar().

Meta

License

Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:

The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.