Violin Plot Maker | Free Publication-Ready Violin Plot Tool

Violin Plot Maker | Free Publication-Ready Violin Plot Tool
Free Statistics Tool - StatsUnlock

Violin Plot Maker

Turn your group data into a clean, publication-ready violin plot with an embedded box plot and an automatic significance test. Paste values or upload a CSV, edit every style option, and export a high-resolution image in one click.

Key Takeaways

  • A violin plot shows the full distribution shape of each group, not just the average.
  • The white box inside each violin is a standard box plot (median, quartiles, whiskers).
  • Wider sections mean more data points sit at that value, so you can spot skew and extra peaks.
  • This tool runs a built-in ANOVA or Kruskal-Wallis test and prints the p-value for you.
  • Every colour, font, axis, and label is editable, so the figure is ready for a research paper.

1. Enter Your Data

Type a group name and paste its values as comma-separated numbers. Add as many groups as you need, or upload a CSV file.

Paste values
Upload CSV

Tip: pick one column of numbers and one column that names the group for each row.

2. Publication-Ready Plot

One violin plot, fully editable. Change any option below and the figure updates live.

Data & text
Fonts & sizes
Colours
Violin & box style
Axis & frame
Extras

3. Results

4. Formulas Used

1
Median (middle value)
median = middle value of sorted data
Sort the group, then take the centre value (or the average of the two centre values).
2
Quartiles and IQR
IQR = Q3 − Q1
Q1 and Q3 are the 25th and 75th percentiles. The box spans Q1 to Q3.
3
Whiskers (1.5 x IQR rule)
whisker = last value within Q1 − 1.5·IQR and Q3 + 1.5·IQR
Points beyond the whiskers are possible outliers.
4
Kernel density (violin shape)
f(x) = (1 / n·h) ∑ K( (x − xᵢ) / h )
K is a Gaussian kernel and h is the bandwidth. This curve makes the violin outline.
5
Silverman bandwidth
h = 1.06 · s · n−1/5
s is the standard deviation and n is the sample size. The slider multiplies this value.

5. How to Interpret Your Results

6. How to Write Your Results in a Research Paper

Copy any card and swap in your own wording. The numbers below fill from your data.

7. Example Results Section

Ecology (USA field study). A violin plot compared plant height across three habitat types in a Midwest USA reserve. Wetland plots had the highest median (67 cm) and a narrow, symmetric violin, while grassland plots were lower (median 51 cm) with a longer lower tail. A one-way ANOVA showed a strong group effect, F(2, 51) = 226.4, p < .001. This is one of the fast-ranking USA example datasets built into the tool.
Medicine. Resting heart rate was plotted for three exercise groups. The high-intensity group showed a wide, bimodal violin, hinting at two response sub-groups. The median dropped from 78 to 66 bpm across the groups, and a Kruskal-Wallis test confirmed the difference, H(2) = 18.7, p < .001.
Education. Exam scores for two teaching methods were shown as violins. The flipped-classroom group had a higher and tighter distribution (median 82 vs 74). A Welch t-test found the gap was significant, t(96) = 4.1, p < .001.
Business. Monthly sales per store were compared across three regions. The violins revealed that one region had a long upper tail driven by a few flagship stores, which the mean alone would have hidden.
Psychology. Reaction times under three conditions were plotted. All violins were right-skewed, a common pattern for timing data, so the median was reported instead of the mean.
Agriculture. Crop yield under four fertilizer levels was displayed. The widening violins at higher doses showed rising variability, an important finding for risk-aware planting decisions.

How to Use This Tool

  1. Rename the first group and paste its values as comma-separated numbers.
  2. Click + Add group to add more groups, or remove any you do not need.
  3. Prefer a file? Open the Upload CSV tab and choose a .csv file.
  4. Pick your value column and group column, then click Use these columns.
  5. Press Generate Plot & Results to draw the violin plot.
  6. Open Plot Options and edit the title, colours, fonts, and axes.
  7. Turn the box plot, data points, or mean marker on or off as needed.
  8. Choose a significance test, or leave it on Auto.
  9. Type a figure caption; it prints on the image itself.
  10. Download a PNG, JPEG, or WebP and drop it straight into your paper.

When to Use and When Not to Use

✅ When to use a violin plot

  • You compare a numeric measure across two or more groups.
  • You want to show the full distribution shape, not just the mean.
  • Your data may be skewed or have more than one peak.
  • Each group has enough points (about 10 or more) to estimate a curve.
  • You need one clean figure for a paper, poster, or report.

❌ When not to use it

  • Very small samples (under about 8) - use a strip or dot plot instead.
  • You only have counts or proportions - use a bar chart.
  • You track a value over time - use a line chart.
  • You compare two numeric variables - use a scatter plot.
  • Your audience is unfamiliar with density curves - a box plot may be clearer.

Assumptions and Limitations

Enough data per group. The density curve needs a reasonable sample size. With very few points the violin shape can be misleading.
Numeric, continuous values. Violin plots suit measured data such as height, weight, or time, not categories.
Bandwidth matters. A wide bandwidth smooths detail; a narrow one adds noise. Adjust the slider and judge by eye.
Density can spill past the data range. The curve is an estimate, so a violin may extend slightly beyond your real minimum and maximum.
The test is a starting point. The built-in ANOVA or Kruskal-Wallis flags a difference but does not replace full model checking.

8. Conclusion

A violin plot is one of the most honest ways to show group data, because it reveals the shape hiding behind every average. When two groups share the same mean but one is skewed or split into two clusters, a bar chart hides that story while a violin plot puts it in plain sight. That extra detail helps reviewers trust your figure and helps readers understand your result at a glance. Use this violin plot maker to draft the figure, adjust the style to match your journal, run a quick significance test, and export a crisp image that is ready to publish. Everything runs in your browser, so your data stays private on your own device.

9. Frequently Asked Questions

What is a violin plot?

A violin plot is a chart that shows the distribution of a numeric variable for one or more groups. It looks like a box plot wrapped in a mirrored density curve. The curve shows where data points are dense, and the box inside shows the median and quartiles.

What is a violin plot used for?

It is used to compare the shape, spread, and centre of data across groups. Researchers use it when the mean alone is not enough, for example when data is skewed, has outliers, or has more than one peak that a bar chart would hide.

How do I read a violin plot?

Wider parts of the violin mean more data points fall at that value. The white box shows the interquartile range, the dot or line marks the median, and the whiskers show the typical range. Long tails signal skew, and two bulges signal two clusters.

What is the difference between a violin plot and a box plot?

A box plot only shows five summary numbers: the minimum, Q1, median, Q3, and maximum. A violin plot adds the full density curve on top, so you can see the actual shape of the distribution, including skew and extra peaks that a box plot misses.

How much data do I need for a violin plot?

Aim for at least 10 points per group, and ideally 20 or more. With fewer points the density curve is unstable and can suggest patterns that are not real. For tiny samples a dot plot or strip plot is safer.

What does the width of a violin mean?

Width shows density. A wide section means many data points share that value, and a narrow section means few. The widest point is usually near the median for symmetric data, or shifted up or down for skewed data.

Can a violin plot show more than one peak?

Yes. If a group has two clusters of values, the violin shows two bulges. This is called a bimodal shape and is one of the biggest reasons to choose a violin plot over a bar chart or a simple box plot.

What is bandwidth in a violin plot?

Bandwidth controls how smooth the density curve is. A large bandwidth gives a smooth, simple shape; a small one shows more bumps and detail. This tool starts from the Silverman rule and lets you fine-tune it with a slider.

Should I report the mean or the median with a violin plot?

If the violins are skewed, report the median because it is not pulled by extreme values. If they are roughly symmetric, the mean and median will be close and either is fine. Many journals prefer the median with the interquartile range.

What significance test goes with a violin plot?

For two groups use a t-test or Mann-Whitney U. For three or more groups use one-way ANOVA or Kruskal-Wallis. Use the non-parametric options (Mann-Whitney, Kruskal-Wallis) when the data is skewed. This tool picks a sensible test on Auto.

Is a violin plot the same as a bean plot?

They are close cousins. A bean plot also mirrors a density curve, but it usually shows individual data lines and a mean line instead of a box. A violin plot shows a smooth curve with a box inside. Both display distribution shape.

How do I make a violin plot without R or Python?

Use this online violin plot maker. Paste your numbers or upload a CSV, and the tool draws the chart, adds a box plot, runs a test, and exports an image. You do not need to install software or write any code.

Can I make a horizontal violin plot?

Yes. Open the Plot Options and set orientation to horizontal. The value axis moves to the bottom and the group names move to the side, which is handy when group names are long.

How do I export a violin plot for publication?

Set a large export width and height in the Plot Options for a high-resolution image, then click Download PNG. PNG keeps sharp lines and text, which is what most journals want. JPEG and WebP are also available.

Why does my violin extend beyond my data?

The density curve is an estimate, so it can spill a little past the real minimum and maximum. This tool forces each violin to taper to a crisp point, but a small overshoot near the tails is normal and expected.

Can I show the individual data points too?

Yes. Turn on Show data points in the Plot Options to add a light jitter of raw points over each violin. This is useful for small samples so readers can see the actual observations.

What colour scheme should I use?

Pick the colour-blind safe scheme for accessibility, or match your journal style. You can also set a custom colour for each group. Keep fills semi-transparent so the box plot stays visible inside.

Does this violin plot tool store my data?

No. All calculations run in your browser on your own device. Nothing is uploaded to a server, so your data stays private. You can even save the page and use it offline.

Can I compare only two groups with a violin plot?

Yes. Two groups work perfectly. The tool will offer a t-test or Mann-Whitney U instead of ANOVA and draw a bracket with a star when the difference is significant.

How do I cite a figure made with this tool?

Describe the plot in your methods, name the test you used, and note the software. You can write, for example, "Violin plots were produced with the StatsUnlock Violin Plot Maker (statsunlock.com)."

10. References

  1. Hintze, J. L., & Nelson, R. D. (1998). Violin plots: A box plot-density trace synergism. The American Statistician, 52(2), 181-184. https://doi.org/10.1080/00031305.1998.10480559
  2. Tukey, J. W. (1977). Exploratory Data Analysis. Addison-Wesley. archive.org/details/exploratorydataa00tuke_0
  3. Silverman, B. W. (1986). Density Estimation for Statistics and Data Analysis. Chapman & Hall. https://doi.org/10.1201/9781315140919
  4. Wickham, H., & Stryjewski, L. (2011). 40 years of boxplots. vita.had.co.nz/papers/boxplots.pdf
  5. Scott, D. W. (2015). Multivariate Density Estimation (2nd ed.). Wiley. https://doi.org/10.1002/9781118575574
  6. Kruskal, W. H., & Wallis, W. A. (1952). Use of ranks in one-criterion variance analysis. JASA, 47(260), 583-621. https://doi.org/10.1080/01621459.1952.10483441
  7. Welch, B. L. (1947). The generalization of Student's problem when several different population variances are involved. Biometrika, 34(1-2), 28-35. https://doi.org/10.1093/biomet/34.1-2.28
  8. Mann, H. B., & Whitney, D. R. (1947). On a test of whether one of two random variables is stochastically larger. Annals of Mathematical Statistics, 18(1), 50-60. https://doi.org/10.1214/aoms/1177730491
  9. Fisher, R. A. (1925). Statistical Methods for Research Workers. Oliver & Boyd. psychclassics.yorku.ca/Fisher/Methods
  10. McGill, R., Tukey, J. W., & Larsen, W. A. (1978). Variations of box plots. The American Statistician, 32(1), 12-16. https://doi.org/10.1080/00031305.1978.10479236
  11. Wilke, C. O. (2019). Fundamentals of Data Visualization. O'Reilly. clauswilke.com/dataviz
  12. Weissgerber, T. L., et al. (2015). Beyond bar and line graphs. PLoS Biology, 13(4), e1002128. https://doi.org/10.1371/journal.pbio.1002128
  13. Rosenthal, R., & Rosnow, R. L. (2008). Essentials of Behavioral Research. McGraw-Hill. mheducation.com
  14. Field, A. (2018). Discovering Statistics Using IBM SPSS (5th ed.). Sage. sagepub.com
  15. Wickham, H. (2016). ggplot2: Elegant Graphics for Data Analysis. Springer. https://doi.org/10.1007/978-3-319-24277-4
  16. Cleveland, W. S. (1993). Visualizing Data. Hobart Press. stat.purdue.edu/~wsc/visualizing
  17. Waskom, M. L. (2021). seaborn: statistical data visualization. JOSS, 6(60), 3021. https://doi.org/10.21105/joss.03021
  18. Krzywinski, M., & Altman, N. (2014). Visualizing samples with box plots. Nature Methods, 11, 119-120. https://doi.org/10.1038/nmeth.2813
  19. Student. (1908). The probable error of a mean. Biometrika, 6(1), 1-25. https://doi.org/10.1093/biomet/6.1.1
  20. R Core Team (2024). R: A Language and Environment for Statistical Computing. R-project.org
Built with the StatsUnlock Violin Plot Maker - statsunlock.com

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
Next Post

All Categories

Most Recent Posts

Important Charts & Plots

© 2026 STATS UNLOCK . statsunlock.com –  All Rights Reserved.