Graph Maker: publication-ready graphs without code
Open your data, and aStat draws a journal-style graph straight away. Change as much or as little as you like, then download a TIFF, PDF or EPS at the exact size and resolution your journal asks for, with the R and Python code that draws it.
Getting started
- Open a file (or an example), then choose Graph Maker in the toolbar. After running an analysis you can also press Open in Graph Maker under its chart: the columns, chart type, error bars and comparison method come along.
- The first graph is picked from your columns: groups and a measurement give bars with error bars, data points and letters; a time column adds one line per treatment; two measurements give a scatter plot with a fitted line.
- Change anything in the Customize panel. The graph redraws about half a second after each change.
Your data: every measurement, or means already calculated
Open a file straight from Graph Maker (Open my data or Open data file), or start from an analysis. Two shapes of sheet work:
- Every measurement, one row each, with a column for the treatment. aStat calculates the means, error bars and letters.
- Means already calculated, one row per bar, for results analysed elsewhere (SAS, SPSS, Statistix, a thesis table). Columns: the category (treatment), the mean, and optionally its error (SE, SD or a confidence half-width), letters or stars, and a second factor. aStat draws them exactly as entered, as bars or lines. Say in the caption which error the bars show.
aStat recognises a table of means from column names such as Mean, SE/SD and Letters; you can also switch Your data by hand and pick the columns.
Graph types
- Bars: means with error bars (SE, SD or 95% confidence interval), optionally with every data point.
- Box plot and violin plot, with the data points.
- Dot plot: every data point with the mean and its error bar.
- Scatter plot with a fitted straight line, its 95% band, and the equation with R².
- Line graph: means over time or dose, one line per group.
A second factor puts bars side by side (for example fertilizer by variety) or draws one line per group.
Letters (a, b, c) and stars
For one factor on the x axis, aStat compares the categories with a one-way ANOVA and prints compact letters above each one: means that share a letter do not differ at the 5% level. Choose Tukey, Duncan (DMRT), Fisher's LSD, Bonferroni, Šidák or Scheffé; see comparing means. Or choose Type my own and enter any letters or stars (*, **, ns), for example from a mixed model.
Customizing
- Colours: one colour, a palette colour per category or group (colour-blind safe, greys for print, viridis, field tones), or pick each colour yourself.
- Axes: titles (type units such as kg ha⁻¹ directly), y range and tick spacing, slanted or vertical labels, and the order and names of the categories.
- Legend: right, top, bottom, inside or hidden, with its own title.
- Text: sans serif (Arial or Helvetica) or serif (Times), font size in points, a dashed reference line, and free text placed anywhere.
Size, resolution and file type
Pick your journal to set the column width and resolution, or type them. Width and height are the final printed size in millimetres, so text prints at the point size you chose.
- TIFF (LZW compressed, lossless) and PNG are pixel images; the dpi sets their sharpness. Graphs with text usually need 600 to 1000 dpi (line art); photos 300 dpi.
- PDF, EPS and SVG are vector files that stay sharp at any size, so no dpi is needed.
Raising the dpi of an existing image does not add detail. Graph Maker draws the graph again from your data at the size you ask for, so the file is genuinely sharp.
The R and Python code
R script draws the same graph with ggplot2 and saves it with ggsave() at your size and dpi. Python script draws it with matplotlib (pandas, numpy and scipy) and saves it the same way; letters are written into it as the values aStat computed. Keep the script next to your data file and run it. In desktop R, "sans" uses Arial or Helvetica; in the browser preview it uses Noto Sans, which has the same proportions.
Panel figures: (A), (B), (C)
Journals often want several graphs or photos combined into one figure with panel letters. In Graph Maker, press Add to panel figure for each graph you want (each is drawn sharply at 600 dpi or more), or open the panel figure from the start screen and Add pictures of your own (PNG or JPEG; save TIFF photos as PNG first, since browsers cannot open TIFF).
- Move a panel by dragging it; resize it with its corner handle (hold Shift to stretch it freely). Arrow keys nudge the selected panel by 1 mm (5 mm with Shift); Delete removes it.
- Arrange in a grid lines the panels up in the number of columns you choose, with an even gap, and fits the page height.
- Panel labels are added in order, in the style you choose: (A), A, A., (a), a or a. Drag any label to move it on its own, inside or outside its picture, or put them all inside the corner or above the pictures with one click (the layout moves down to make room). Change the order in the panel list, or type a different label for any panel.
- Add text places your own words anywhere, for example a shared legend or a scale note.
- Set the page to your journal's single or double column width and the resolution, then download a TIFF (LZW), PNG or JPEG with that dpi recorded in the file.
aStat warns you when a picture would print below 300 dpi at the size you placed it: make it smaller, or export the graph again larger from Graph Maker.