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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!