Question: Using R studio # Use grouping to calculate the mean life expectancy for each continent and year. # Call the mean life expectancy variable mean_le.
Using R studio
# Use grouping to calculate the mean life expectancy for each continent and year. # Call the mean life expectancy variable mean_le. # Plot the life expectancy over time (no need to change the plot code). gapminder %>% ------------%>% # replace the dashed lines with correct -------------%>% #replace the dashed lines with correct ggplot(aes(x = year, y = mean_le, col = continent)) + geom_line() + scale_color_manual(values = continent_colors)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
