Question
Please complete the following steps in one document/report by leveraging your knowledge in R: 1.Instal the gapminder package (ensure tidyverse and ggplot2 are also installed)
Please complete the following steps in one document/report by leveraging your knowledge in R:
1.Instal the gapminder package (ensure tidyverse and ggplot2 are also installed)
2.Inspect the gapminder data by looking at the first and last 5 rows of the data (show your results)
3.Create a scatterplot using the "GDP per Capita" and "Life Expectancy" columns.
4.To uncompress the x-axis, change its scale to a logarithmic scale by adding + scale_x_log10() to the object
5.Identify each continent by adding a colour attribute,
6.Use boxplots to visualize the distribution of life expectancy in each continent
7.Create a histogram that compares the life expectancy of each continent by using different colours
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started