1. Homepage
  2. Exam
  3. [2021] Auckland - STATS 787 Data Visualisation - Final Exam - Q8 SVG Code

[2021] Auckland - STATS 787 Data Visualisation - Final Exam - Q8 SVG Code

This question has been solved
Engage in a Conversation

8. [10 marks] CourseNana.COM

(a) [5 marks] CourseNana.COM

This question relates to the following SVG code. CourseNana.COM


CourseNana.COM

CourseNana.COM

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
width="310" height="310">
<line x1="100" x2="200" y1="300" y2="300"
stroke="black" stroke-width="1"/>
<line x1="100" x2="100" y1="300" y2="102"
stroke="grey" stroke-width="1"/>
<line x1="200" x2="200" y1="300" y2="141"
stroke="grey" stroke-width="1"/>
<circle cx="100" cy="102" r="5" fill="#2297E6"/>
<circle cx="200" cy="141" r="5" fill="#DF536B"/>
<text x="100" y="90" font-size="12"
text-anchor="middle" fill="black">66</text>
<text x="200" y="130" font-size="12"
text-anchor="middle" fill="black">53</text>
</svg>


CourseNana.COM

This SVG code produces the image below. CourseNana.COM

  CourseNana.COM

Explain in detail the purpose of every line of the SVG code above, including the meaning of all elements and attributes. CourseNana.COM

  CourseNana.COM

(b) [5 marks] CourseNana.COM

Write R code that uses the xml2 package to create an SVG file similar to the one in the previous question, but this image draws values for all 30 COVIDcases. CourseNana.COM

The SVG code that your R code creates would look like the image below. CourseNana.COM

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,