Solution: Create Box and Whisker Plots

Let's look at the solution to the previous exercise.

We'll cover the following

Solution

We’ve already learned how to make box and whisker plots in this chapter, so now we’re going to do that with our new subsetted data frames. We’re going to start by plotting differences in SVL for the three predator treatments.

Note: We’ve set the ylim= argument so that the two figures have the same y-axis values. This makes them easier to compare visually.

Let’s try a code for plotting differences in SVL for the three predator treatments for the before30 data frame.

Get hands-on with 1200+ tech skills courses.