How to Use StatFlo: A Complete Guide
StatFlo turns a spreadsheet of numbers into a publication-quality graph and a statistical test in four steps. Everything runs inside your browser: the file you upload is read by JavaScript on your own computer and is never sent to a server. This guide explains how to format your data, which graph and test to choose for your situation, how to read the numbers in the results panel, and the most common mistakes to avoid.
1. Quick start in four steps
- Enter your data. The Enter Your Data card is a small spreadsheet: type group names in the top row and values underneath, moving with Enter, Tab or the arrow keys. To bring in existing data, copy a block of cells in Excel or Google Sheets and paste it into any cell (or press Ctrl/⌘+V anywhere on the page), or use Upload CSV / Excel (
.csv,.xlsx,.xls) or drop a file onto the card. Uploaded and pasted data appear in the table, so you can check and correct them before analyzing. To see how the tool works, click Sample data: it loads three groups (Control, Treatment_A, Treatment_B) with 20 measurements each. - Configure groups. Pick a graph type and tick the columns you want to compare. Each numeric column becomes one group on the graph. For bar graphs, choose what the error bars show (SD, SEM, or 95% confidence interval).
- Label your axes. Type the X and Y axis titles exactly as you want them to appear in your figure, including units, for example
Body weight (g). - Choose a statistical test (optional) and click Generate Visualization. Not sure which one? Click Help me choose next to the Test menu: StatFlo looks at your selected columns (number of groups, skewness, outliers, spread, whether values look like an ordinal scale) and suggests a test with its reasons. The graph appears first, followed by a results table and a plain-English interpretation.
You can change any setting and click Generate again as often as you like. Your choices of graph, error bars, test and axis labels are remembered in your browser for your next visit (use Reset settings below the Generate button to clear them); your data itself is never saved or uploaded.
2. How to format your data
StatFlo expects one group per column, with the group name in the first row. This is often called "wide" or "column" format, and it is the same layout GraphPad Prism uses for column tables.
| Control | Drug_10mg | Drug_50mg |
|---|---|---|
| 22.8 | 23.9 | 25.2 |
| 23.6 | 27.5 | 22.8 |
| 25.6 | 28.4 | 26.0 |
| 24.2 | 24.1 |
- The first row must contain headers. These become the group names on the graph and in the results table, so make them short and readable.
- Groups can have different sizes. Empty cells are simply skipped, so a column with 18 values and a column with 20 values work fine together.
- Text cells are ignored, and flagged. A cell containing
n/aor a typo such as12..5is dropped rather than treated as zero, and in a numeric column it is highlighted in red so you can fix it. Label columns (for example subject IDs) are recognized and simply left out of the analysis. - Each column needs at least 3 numbers to appear in the column list. Decimal commas (
1,5) and thousands separators (1,250) are understood. - Large files: the table shows and lets you edit the first 1,000 rows; all rows are used in the analysis.
- Excel files: only the first worksheet is read. Move the sheet you want to analyze to the first position, or save it as CSV.
- Several files at once: if you upload two or more files, each file is treated as one group and all numeric values in that file are pooled. This is handy when each condition was exported to its own file by an instrument.
Group, Value), reshape it first: in Excel use a PivotTable or simply copy each group's values into its own column. In R, tidyr::pivot_wider() does this in one line.3. Choosing a graph type
The right graph depends on what you want the reader to see. As a rule of thumb, show the raw data whenever possible: a graph that hides individual points can make very different datasets look identical. The Show individual data points option overlays every observation on bar, box, and violin plots.
| Graph | Best for | Things to keep in mind |
|---|---|---|
| Bar graph | Comparing group means at a glance | Always add error bars and, ideally, the individual points. Bars hide the shape of the distribution. |
| Box plot | Comparing medians and spread; spotting outliers | Shows median, quartiles (IQR) and whiskers. Robust to skewed data and a good companion to non-parametric tests. |
| Violin plot | Seeing the full shape of each distribution | Reveals bimodal or skewed data that a box plot can hide. Works best with roughly 20+ points per group. |
| Scatter plot | Relationship between two variables | Pick an X and a Y column; a linear regression line, equation and R² are added automatically. |
| Line plot | Values in a meaningful order, such as time points | Rows are plotted in the order they appear in your file, so sort your data first. |
| Histogram | Checking the distribution of one or more groups | Useful before choosing a test: a strongly skewed histogram suggests a non-parametric test. See How to read a histogram. |
| Before–after plot | Paired data: the same subjects measured twice | Select two matched columns (one subject per row). Each subject is a line from one condition to the other; the bold line joins the means. |
| Correlation heatmap | Overview of how many variables relate to each other | Shows Pearson correlation (r) for every pair of columns, from −1 (red) to +1 (navy). See Correlation explained. |
Not sure which to use for distributions? Read Box plot vs. violin plot. For error bars, SD vs. SEM vs. 95% CI explains what each one actually tells the reader and which journals tend to prefer.
4. Choosing a statistical test
Three questions decide the test: how many groups are you comparing, are they independent or paired, and is the data roughly normal (symmetric, without extreme outliers)? The Help me choose button answers the first and third from your data and asks you the second, since pairing depends on how the data were collected. All tests except the paired t-test and Wilcoxon signed-rank test assume the groups are independent, meaning different subjects or samples in each group.
| Test | Groups | Use when |
|---|---|---|
| Student's t-test | 2 | Data is roughly normal and both groups have similar spread (SDs within about a factor of 2). |
| Welch's t-test | 2 | Data is roughly normal but spreads or sample sizes differ. A safe default for two groups. |
| Mann-Whitney U | 2 | Data is skewed, has outliers, or is ordinal (ranks, scores). Compares distributions using ranks. |
| One-way ANOVA | 3 or more | Data in each group is roughly normal with similar spread. |
| Kruskal-Wallis | 3 or more | The non-parametric alternative to ANOVA for skewed data or outliers. |
| Paired t-test | 2 matched | The same subjects measured twice (before/after, left/right) and the within-pair differences are roughly symmetric. |
| Wilcoxon signed-rank | 2 matched | Matched measurements with skewed differences, outliers or ordinal scores. |
A practical workflow: first draw a box or violin plot with individual points. If the groups look roughly symmetric and similar in spread, use the parametric test; if they are clearly skewed or contain outliers, use the non-parametric one. How to check normality explains what to look for. Our interactive Which test should I use? guide walks through the decision, and Parametric vs. non-parametric tests explains the trade-offs. Each test also has its own guide: Welch's vs Student's t-test, Mann-Whitney U and Kruskal-Wallis.
5. Reading your results
The results panel starts with a significance badge, a test table and a group summary table. Depending on the test it adds an effect-size table and post-hoc comparisons, and it ends with a written interpretation you can adapt for your report. The Copy results button copies everything as text that pastes cleanly into Excel, Word or Google Docs.
The test table
- Test statistic (t, U, F or H) measures how far apart the groups are relative to the variability within them. Larger values mean a bigger difference.
- df (degrees of freedom) depends on sample size. Welch's test gives a non-integer df; that is expected. Journals usually ask you to report it, for example
t(37.2) = 2.85. - p-value is the probability of seeing a difference at least this large if the groups truly did not differ. StatFlo marks results with p < 0.05 as statistically significant. See What a p-value really means for the common misreadings.
The group summary table
For parametric tests the table lists each group's n, mean, and the spread you chose for the error bars (SD, SEM or 95% CI). For non-parametric tests it shows the median and interquartile range (IQR) instead, because those tests are based on ranks rather than means.
Effect sizes
A p-value says whether a difference is detectable; an effect size says how large it is. StatFlo reports one with every test: the mean difference with its 95% confidence interval, Cohen's d and Hedges' g for t-tests; η² for ANOVA; the rank-biserial correlation r for Mann-Whitney U; and ε² for Kruskal-Wallis. Each comes with a conventional label (negligible, small, medium, large), which is only a rough guide; see Effect size explained.
Post-hoc comparisons (3 or more groups)
A significant ANOVA or Kruskal-Wallis result tells you that at least one group differs, not which one. StatFlo therefore adds a post-hoc table automatically: Tukey's HSD after ANOVA (the Tukey-Kramer version, valid for unequal group sizes, with simultaneous 95% confidence intervals), and Dunn's test with Holm adjustment after Kruskal-Wallis. All p-values in these tables are already adjusted for the number of comparisons, so running separate t-tests is unnecessary. Post-hoc tests explained describes how each method works.
Significance brackets on the graph
For bar, box and violin plots, StatFlo can draw brackets with asterisks between groups: ns p ≥ 0.05, * p < 0.05, ** p < 0.01, *** p < 0.001, **** p < 0.0001 (the same convention as GraphPad Prism). Choose under Significance on graph whether to show only significant comparisons, all comparisons, or none. With two groups the bracket uses the selected test; with three or more it uses the post-hoc p-values. A footnote naming the method is included in exported images.
Scatter plot and regression
For scatter plots, the results show the regression equation (y = intercept + slope·x), R², Pearson r and the p-value for the slope. R² is the share of the variation in Y explained by X: an R² of 0.64 means 64%. A significant slope shows a linear relationship exists; it does not show that X causes Y. More in Linear regression and R² explained.
Reporting example
Using the sample data with Welch's t-test on Control vs. Treatment_A, a methods-and-results sentence might read: "Treatment A increased the measured value compared with control (26.8 ± 1.4 vs 24.1 ± 1.0, mean ± SD; Welch's t-test, t(34.7) = 7.17, p < 0.0001; Hedges' g = 2.22)." Copy the exact statistic, df, p-value and effect size from the results table, and state which error bar you plotted in the figure legend.
6. Exporting figures for papers and slides
- Choose an export size next to the download buttons. Standard gives a 2800 × 1800 pixel image. The three Journal sizes produce figures exactly 3.5 in (89 mm), 5.5 in (140 mm) or 7 in (178 mm) wide at 300 dpi, the single-, 1.5- and double-column widths most journals use, so text appears at its real printed size (Medium ≈ 10 pt). Slide gives a full-HD 16:9 image.
- Download PNG creates the raster image at the chosen size.
- Download SVG creates a vector file that stays crisp at any size. Open it in Adobe Illustrator, Inkscape, Affinity Designer or PowerPoint to change fonts, adjust the significance brackets, or combine several panels into one figure.
- Both formats include any significance brackets and the footnote that explains them.
Write axis labels with units before exporting, and mention in the figure legend what the error bars represent and how many observations each group contains.
Styling the graph
In the Labels & Style card you can add a title and choose a color palette: Colorblind-safe (Okabe-Ito) is distinguishable by readers with all common forms of color-vision deficiency, Grayscale suits black-and-white printing, and Single color gives a uniform look. Text size scales every label, tick and asterisk together. To change the order of groups on the graph (and in the post-hoc tables), use the ↑ ↓ buttons next to each column. Style changes update the graph immediately, and your choices are remembered for your next visit.
7. Common mistakes and how to avoid them
- Choosing the test after seeing the p-value. Decide on the test from the study design and the shape of the data, then run it once. Type I and Type II errors explains why.
- Treating repeated measurements as independent. Three measurements from the same animal are not three independent samples. Average technical replicates first, or use a paired or repeated-measures method.
- Bar graphs without data points. With small samples (n < 10), a bar hides almost everything. Turn on individual points or use a box plot, which also makes outliers easy to spot.
- Confusing SD and SEM. SEM shrinks as n grows and makes data look less variable. Use SD to describe the data and SEM or 95% CI to describe the precision of the mean, and always say which one you used.
- Reading "not significant" as "no difference". A p-value above 0.05 may simply mean the sample was too small to detect a real effect. See sample size and power and effect size.
- Headers in the wrong row. If no columns appear after uploading, check that the first row holds the column names and that there are no merged title rows above them.
8. Privacy and limitations
Your data stays on your device. The file is parsed in your browser with open-source libraries (PapaParse for CSV, SheetJS for Excel, Plotly for graphs), and the statistical calculations are implemented in plain JavaScript that runs locally. Pasted data is handled the same way. Closing the tab discards your data; only your display settings (graph type, error bars, test, axis labels) are remembered in your browser's local storage, and never your values.
StatFlo is designed for the most common comparisons in lab and survey research. It does not currently perform repeated-measures ANOVA or the Friedman test (three or more matched conditions), two-way ANOVA, Dunnett's comparisons against a single control, survival analysis or non-linear curve fitting. For those, or when results will support high-stakes decisions, confirm the analysis with dedicated statistical software or a statistician. See our Terms & Disclaimer.
New to statistics? Start with the Learn section, follow the hands-on t-test tutorial, or look up unfamiliar terms in the statistics glossary. Questions or a feature request? Contact us.