Data Visualizations

You can use the boxplot, dotplot, and histogram functions to plot some common visualizations based on univariate data. To find these functions, click Show Keypad and then Functions. Scroll to the Dist section and then choose your functions. Or, type them directly into an expression line using a keyboard.

 

Box Plot

You can create a box-and-whisker plot from data contained in a list by typing boxplot into an expression line. By default, the plot has a vertical offset of one unit, and the box is one unit high. You can change the offset and box height using the input fields. You can also check Exclude Outliers to remove them from your data set.

The boxplot function calculates quartiles using the Moore and McCabe method, which discards the median in odd-length data sets before computing the upper and lower quartiles.

Image of a box plot with an outlier. Screenshot.

 

Dot Plot

You can create a dot plot of data contained in a list by using bin width to group the data. When at least one of the \(x\)-values in your dataset is not equal to a bin center, you can choose between Exact or Binned \(x\)-values. When you select Exact (the default selection), each dot will display at its exact corresponding \(x\)-value. When you select Binned, each dot will center within its bin.

Dot plot, toggled between exact and binned. GIF

 

Histogram

You can create a histogram from data contained in a list by using bin width to group the data.

By default, bar heights are set to Count so that a bar's height is equal to the raw number of data points in its bin. If you select Relative, the bar heights adjust proportionally so that their sum is 1. If you select Density, the bar heights adjust proportionally so that the histogram's total area is 1.

Image of a histogram. Screenshot.

A bin width divides the range of values in a list into a series of intervals and determines how many values from the list fall into each interval. For the dotplot and histogram functions, the bin width defaults to 1. You can adjust it by using a new value as a second argument (boxplot\(\mathbf{(L,2)}\)). By default, bins are centered at integer multiples of the bin width. If you choose the Left bin alignment, the left edges of bins are placed at integer multiples of the bin width.

 

Learn More

Please write in with any questions or feedback to support@desmos.com.