You are working with the penguins dataset. You create a scatterplot with the following code:
ggplot(data = penguins) +
geom_point(mapping = aes(x = flipper_length_mm, y = body_mass_g))
You want to highlight the different years of data collection on your plot. Add a code chunk to the second line of code to map the aesthetic size to the variable year. NOTE: the three dots (...) indicate where to add the code chunk.
geom_point(mapping = aes(x = flipper_length_mm, y = body_mass_g, size = year))
What years does your visualization display?
Single Choice Question. Please Choose The Correct Option ✔
A
2007-2009
B
2005-2009
C
2007-2011
D
2006-2010