♦ R Box Plot
♣ About R Box PlotBox plot gives a good amount of statistical information.
Typical Box Plot information such as minimum, maximum, median, first quartile, and third quartile can be interpreted from the graph.
R language uses the function boxplot() function to create a Box Plot.
♣ R Box Plot SyntaxBelow is the representation of R Box Plot Syntax.
boxplot(x, xlab, ylab, data, notch, varwidth, names, main)
|x||vector or formula for Box Plot|
|xlab||label for x-axis|
|ylab||label for y-axis|
|data||DataFrame of elements to be plotted|
|notch||Set as TRUE to draw a notch(it is 95% confidence interval of the Median)|
|varwidth||Set as true to draw width of the box proportionate to the sample size|
|names||giving label to each entity under the box plot|
|main||title of the Box Plot|
♣ Example1: Plotting Data using Box Plot in RIn this example, miles per gallon v/s number of cylinder graph is illustrated.