Question: r studio code pls Purpose: Visualizing data can greatly enhance your understanding of the data. In this assignment, you will practice the basic visualization functions

r studio code pls r studio code pls Purpose: Visualizing data can greatly enhance your understanding

Purpose: Visualizing data can greatly enhance your understanding of the data. In this assignment, you will practice the basic visualization functions for creating bar charts, histograms, scatter plots, and boxplots. You will interpret the data based on the charts. Tasks: Please write an R script that performs the following operations in the order listed. At the beginning of each task, write a comment marking the task number. Name the file as: lab4->.R 1. Import the 'world happiness score.csv' dataset 2. Browse and understand the data in each column 3. Use the plot 0 to create a bar chart showing the number of countries in each region, explain what you learn from the chart (note: you need to coerce the 'region' variable into a factor before drawing the charts) 4. Use the plot() to create a scatter plot with the happiness score as the y axle value and the row ID as the x axle value, explain what you learn from the chart 5. use the plot 0 to create a boxplot showing the difference in happiness score among regions. Explain what you learn from the chart 6. use the ggboxplot ( to create a boxplot showing the difference in the health life expectancy) score among regions. Explain what you learn from the chart 7. Create a histogram for happiness scores. Explain what you learn from the chart 8. Create a histogram for health scores. Explain what you learn from the chart 9. Create a scatter plot illustrating the relationship between happiness score and health score. Explain what you learn from the chart

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!