I’ve got some multivariate data of beauty vs ages. The ages range from 20-40 at intervals of 2 (20, 22, 24….40), and for each record of data, they are given an age and a beauty rating from 1-5. When I do boxplots of this data (ages across the X-axis, beauty ratings across the Y-axis), there are some outliers plotted outside the whiskers of each box.
I want to remove these outliers from the data frame itself, but I’m not sure how R calculates outliers for its box plots. Below is an example of what my data might look like.

OK, you should apply something like this to your dataset. Do not replace & save or you’ll destroy your data! And, btw, you should (almost) never remove outliers from your data:
To see it in action:
And once again, you should never do this on your own, outliers are just meant to be! =)
EDIT: I added
na.rm = TRUEas default.EDIT2: Removed
quantilefunction, added subscripting, hence made the function faster! =)