You add the code chunk size = year to map the aesthetic size to the variable year. The correct code is ggplot(data = penguins) + geom_point(mapping = aes(x = flipper_length_mm, y = body_mass_g, size = year)). Inside the parentheses of the aes() function, after the comma that follows y = body_mass_g, write the aesthetic (size), then an equals sign, then the variable (year). The data points for the different years now appear in different sizes. Your visualization displays the years 2007-2009.
Which of the following are operations you can perform in ggplot2? Select all that apply.
How confident are you in this answer?