Uploaded December 2018 | Updated September 2026, 2 weeks ago
In this tutorial I show you how to create box and whisker plots using Plotly for R.
Box plots, as they are also known, are great to visualize the distribution of a continuous numerical variable. The same variable can be grouped by a categorical variable resulting in comparative box plots.
Box plots have a central box that indicates the first, second (median), and third quartile values. The whiskers on either side go out to the minimum and maximum values for the numerical variable, unless they are more than 1.5 times the interquartile range away from the first or third quartile. Values beyond this are considered statistical outliers.
The HTML rendered file is available on RPubs at rpubs.com/juanhklopper/box_and_whisker_plots
The original RMD file is available on Github at github.com/juanklopper/Plotly-for-R
In this tutorial I show you how to create box and whisker plots using Plotly for R.
Box plots, as they are also known, are great to visualize the distribution of a continuous numerical variable. The same variable can be grouped by a categorical variable resulting in comparative box plots.
Box plots have a central box that indicates the first, second (median), and third quartile values. The whiskers on either side go out to the minimum and maximum values for the numerical variable, unless they are more than 1.5 times the interquartile range away from the first or third quartile. Values beyond this are considered statistical outliers.
The HTML rendered file is available on RPubs at rpubs.com/juanhklopper/box_and_whisker_plots
The original RMD file is available on Github at github.com/juanklopper/Plotly-for-R










