From the course: R for Data Science: Analysis and Visualization

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Creating box plots

Creating box plots

- [Instructor] When you have quantitative variables, a histogram or a density plot is a great place to start. But in addition, a box plot is really good for looking at the symmetry of the distribution and especially for whether there are outliers because outliers can throw off tremendously a huge number of very common analyses. So you're going to want to check for that. Box plots are a good way to do it. Let me show you how this works. We're going to start by loading the tidyverse and readxl. And then we're going to import our dataset. I'm doing one small modification to the dataset in that I'm going to be including several variables that are Yes-No variables and text variables. And by running this command, it's going to convert all of the character variables to factors. So 'mutate' says that I want to change the data, 'across' means I'm going to use several variables, 'where' means search for variables that meet this…

Contents