Also, I grab a legend from one of the plots. Using data (thanks), and adapting code from drawing-pyramid-plot-using-r-and-ggplot2, I draw separate plots for 'males', 'females', and the 'country' labels. Return Value of a Boxplot in R Programming. airquality is the date set provided by the R.
Before we get into the example, let us see the data that we are going to use for this R box plot example.