Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Data Visualzation a Practical Introduction Do the Exercises in Section 3.8 for the chapter Make a Plot https://socviz.co/makeplot.html#makeplot Start by playing around with the gapminder

"Data Visualzation a Practical Introduction" Do the Exercises in Section 3.8 for the chapter "Make a Plot" https://socviz.co/makeplot.html#makeplot Start by playing around with the gapminder data a little more. You can try each of these explorations with geom_point() and then with geom_smooth(), or both together. What happens when you put the geom_smooth() function before geom_point() instead of after it? What does this tell you about how the plot is drawn? Think about how this might be useful when drawing plots. Change the mappings in the aes() function so that you plot Life Expectancy against population (pop) rather than per capita GDP. What does that look like? What does it tell you about the unit of observation in the dataset? Try some alternative scale mappings. Besides scale_x_log10() you can try scale_x_sqrt() and scale_x_reverse(). There are corresponding functions for y-axis transformations. Just write yinstead of x. Experiment with them to see what sort of effect they have on the plot, and whether they make any sense to use. What happens if you map color to year instead of continent? Is the result what you expected? Think about what class of object year is. Remember you can get a quick look at the top of the data, which includes some shorthand information on the class of each variable, by typing gapminder. Instead of mapping color = year, what happens if you try color = factor(year)?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

What are some of the issues in doing program evaluation?

Answered: 1 week ago

Question

What are the limitations of forward markets?

Answered: 1 week ago

Question

a. When did your ancestors come to the United States?

Answered: 1 week ago

Question

d. What language(s) did they speak?

Answered: 1 week ago

Question

e. What difficulties did they encounter?

Answered: 1 week ago