Creating box plot on exercise

The error message is telling you the issue: you can’t use only factors to create a box plot. boxplot is looking for a numeric vector. Run code below as an example: see ?boxplot for examples on using formulas in the boxplot function, as that may be what you are looking for? For example: