PlotBench

How to add SD error bars to each data point (free and easy)

What standard deviation error bars mean, how to work out the SD of your repeats, and how to give every point on a graph its own error bar in PlotBench.

Error bars tell your reader how much your repeated measurements disagreed. This tutorial explains what an SD error bar shows, then gives every point on a graph its own SD error bar, each one sized from its own data. It takes about two minutes.

Everything here works in the free edition. Written for PlotBench 0.1.2.

What you need

What an SD error bar shows

Say you time a pendulum five times at the same length: 1.26, 1.49, 1.41, 1.27 and 1.39 s.

Short bars mean your repeats agreed. Long bars mean they were scattered.

Step 1: Work out the mean and SD

Put the five trials for each length in one row of your spreadsheet. Then, in Excel or Google Sheets:

Use STDEV.S (the sample SD), not STDEV.P, because your five timings are a sample of all the timings you could have made.

Then make a small results table with three columns, the error column straight after the values it belongs to:

Length (cm) Period (s) SD
20 0.924 0.058
30 1.108 0.083
40 1.254 0.034
… … …

Step 2: Paste into PlotBench

Copy the three columns, including the header row. In PlotBench, click Blank figure, click the first cell of the sheet and press Ctrl+V. The header row becomes the column names, and the graph appears straight away.

The SD column pasted in and drawn as a second line along the bottom

Step 3: Mark the SD column as Y error

Look closely: the SD has been drawn as a second line along the bottom of the graph. Pasted columns are treated as data until you say otherwise.

Click the small role box at the top of the SD column and choose yEr (Y error, ± value). The SD line disappears, and every point now has its own error bar, made from the SD in its own row. There are no custom ranges to select.

Every point with its own SD error bar

Tip: if you import a file instead of pasting, a column whose name contains SD, SEM, SE, error, CI or ± is marked as Y error for you.

Step 4: Finish the graph

The Journal check score in the top bar shows 100 when the graph meets the thesis page's rules.

Step 5: Say what the bars show

SD, SEM and confidence-interval bars look the same, so readers rely on your caption. In the Check tab, click Draft caption. For error bars that come from your sheet, PlotBench reminds you to state the type and the number of repeats. Edit that sentence to say, for example:

Error bars show ± 1 SD of five timings (n = 5).

The drafted caption, edited to state SD and n

Bonus: comparing groups

If you are comparing groups (control vs treatments) rather than drawing a curve, you don't need to work out the SD yourself. Open the example Mean ± SD with data points from the start screen and paste your raw repeats over its numbers, one column per group. PlotBench calculates the mean and SD, and the Error bars switch in the Chart tab changes them to SEM or a 95% confidence interval in one click.

Mean ± 95% CI with every data point shown

SD, SEM or 95% CI?

Bar Shows Use it when
SD The spread of your individual measurements Lab reports; showing how consistent your repeats were
SEM How precisely you know the mean (SD ÷ √n) Comparing means in research
95% CI The range that likely contains the true mean Journals and statistics-heavy work

Whichever you use, name it in the caption, with n.

Next: not sure which of the three to use, or what it means when two error bars overlap? Read Error bars explained: SD vs SEM vs 95% CI.

← All posts