1. Homepage
  2. Exam
  3. [2021] Auckland - STATS 787 Data Visualisation - Final Exam - Q6 COVID Visualisation

[2021] Auckland - STATS 787 Data Visualisation - Final Exam - Q6 COVID Visualisation

This question has been solved
Engage in a Conversation

6. [10 marks] CourseNana.COM

(a) [7 marks] CourseNana.COM

This question relates to the code below which draws a map showing China, Singapore, and Indonesia, with the fill colour for each country reflecting the number of cases that originated from that country. The map is shown below the code. CourseNana.COM


CourseNana.COM

library(ggplot2)
library(scales)
gmap <- ggplot(asiaCounts) +
geom_sf(aes(fill=freq, colour=freq, size=weight)) +
geom_label(aes(X, Y, label=name),
color="white", fill=rgb(0,0,0,.5), label.size=0,
hjust=0, vjust=0) +
scale_colour_gradient(low=hcl(60, 60, 40),
high=hcl(60, 80, 80),
aesthetics=c("colour", "fill"))

  CourseNana.COM

Explain in detail the purpose of every line of the code above, including the meaning of all functions and arguments. CourseNana.COM


CourseNana.COM


CourseNana.COM

(b) [3 marks] CourseNana.COM

Suppose that we are only interested in comparing the three countries in terms of the number of COVID cases that originated in each country. CourseNana.COM

Describe an alternative data visualisation that would make this comparison easier and write R code that would produce such a visualisation. CourseNana.COM

CourseNana.COM

CourseNana.COM

CourseNana.COM

CourseNana.COM

CourseNana.COM

Get the Solution to This Question

WeChat WeChat
Whatsapp WhatsApp
The University of Auckland代写,STATS 787代写,Data Visualisation代写,R lang代写,ggplot2代写,The University of Auckland代编,STATS 787代编,Data Visualisation代编,R lang代编,ggplot2代编,The University of Auckland代考,STATS 787代考,Data Visualisation代考,R lang代考,ggplot2代考,The University of Aucklandhelp,STATS 787help,Data Visualisationhelp,R langhelp,ggplot2help,The University of Auckland作业代写,STATS 787作业代写,Data Visualisation作业代写,R lang作业代写,ggplot2作业代写,The University of Auckland编程代写,STATS 787编程代写,Data Visualisation编程代写,R lang编程代写,ggplot2编程代写,The University of Aucklandprogramming help,STATS 787programming help,Data Visualisationprogramming help,R langprogramming help,ggplot2programming help,The University of Aucklandassignment help,STATS 787assignment help,Data Visualisationassignment help,R langassignment help,ggplot2assignment help,The University of Aucklandsolution,STATS 787solution,Data Visualisationsolution,R langsolution,ggplot2solution,