"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.
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.
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?
scale_x_log10()you can try
scale_x_reverse(). There are corresponding functions for y-axis transformations. Just write
x. Experiment with them to see what sort of effect they have on the plot, and whether they make any sense to use.
continent? Is the result what you expected? Think about what class of object
yearis. 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
color = year, what happens if you try
color = factor(year)?
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
We are here to help you