Assignment 2

pdf

School

Royal Melbourne Institute of Technology *

*We aren’t endorsed by this school

Course

2260

Subject

Computer Science

Date

Jun 4, 2024

Type

pdf

Pages

6

Uploaded by ElderBook7531

Report
7/5/2024, 9 : 22 PM Assignment 2 Page 1 of 6 file:///Users/zabiullahbahrami/Assignment_2_RMarkdown_Template/Assignment_2_RMarkdown_Template.html Assignment 2 Deconstruct, Reconstruct Web Report Zabiullah Bahrami (s3957216) Assessment declaration checklist Please carefully read the statements below and check each box if you agree with the declaration. If you do not check all boxes, your assignment will not be marked. If you make a false declaration on any of these points, you may be investigated for academic misconduct. Students found to have breached academic integrity may receive o cial warnings and/or serious academic penalties. Please read more about academic integrity here (https://www.rmit.edu.au/students/student-essentials/assessment-and- exams/academic-integrity). If you are unsure about any of these points or feel your assessment might breach academic integrity, please contact your course coordinator for support. It is important that you DO NOT submit any assessment until you can complete the declaration truthfully. By checking the boxes below, I declare the following: I have not impersonated, or allowed myself to be impersonated by, any person for the purposes of this assessment This assessment is my original work and no part of it has been copied from any other source except where due acknowledgement is made. No part of this assessment has been written for me by any other person except where such collaboration has been authorised by the lecturer/teacher concerned. Where this work is being submitted for individual assessment, I declare that it is my original work and that no part has been contributed by, produced by or in conjunction with another student. I give permission for my assessment response to be reproduced, communicated compared and archived for the purposes of detecting plagiarism. I give permission for a copy of my assessment to be retained by the university for review and comparison, including review by external examiners. I understand that: Plagiarism is the presentation of the work, idea or creation of another person as though it is your own. It is a form of cheating and is a very serious academic o ff ence that may lead to exclusion from the University. Plagiarised material can be drawn from, and presented in, written, graphic and visual form, including electronic data and oral presentations. Plagiarism occurs when the origin of the material used is not appropriately cited. Plagiarism includes the act of assisting or allowing another person to plagiarise or to copy my work. I agree and acknowledge that:
7/5/2024, 9 : 22 PM Assignment 2 Page 2 of 6 file:///Users/zabiullahbahrami/Assignment_2_RMarkdown_Template/Assignment_2_RMarkdown_Template.html I have read and understood the Declaration and Statement of Authorship above. If I do not agree to the Declaration and Statement of Authorship in this context and all boxes are not checked, the assessment outcome is not valid for assessment purposes and will not be included in my final result for this course. Deconstruct ##Library library (ggplot2) library (dplyr) library (plotly) library (readxl) Original The original data visualisation selected for the assignment was as follows: Original Image knitr::include_graphics("/Users/zabiullahbahrami/image.jpg") Source of the visualization
7/5/2024, 9 : 22 PM Assignment 2 Page 3 of 6 file:///Users/zabiullahbahrami/Assignment_2_RMarkdown_Template/Assignment_2_RMarkdown_Template.html link<-"https://elements.visualcapitalist.com/200-years-of-global-gold-production-by -country/" Objective and Audience The objective and audience of the original data visualisation chosen can be summarised as follows: Objective The objective of this visualisation is to show how many tonnes of gold is produced by every country from 1820 to 2020. Audience The audience of this visualisation is general public because it was meant to show to everyone the amount of gold produced from 1820 to 2020. Critique The visualisation chosen had the following three main issues: There is scalling issue. It is hard to compare between di ff erent countries and there many overlapping of the graph. Therefore, a person need to zoom and focus to understand the visualisation. The next issue is the color. When there is overlapping of the plot, it is hard to distinguish between di ff erent countries. The plot is crowded therefore, we can see a lot of overlapping and we need to zoom in to understand the visualisation. Data integrity. The visualisation shows incorrect information about amount of gold produced in 2020. For example, based on this visualisation US produced 170 tones of Gold in 2020, but in reality US produced 190 tones of gold in 2020. We can say the same thing about other countries. Gold Produced in 2020 #The article below from forbes.com shows that gold production in 2020 is different from the first visualisation. source1<-"https://www.forbes.com/sites/greatspeculations/2021/06/23/updated-top-10- gold-producing-countries/?sh=6633cce62ce2" Reconstruct Some Notes There is no any available data set to show gold production from 1820 to 2020 by countries. The only available data set is from ourworldindata.com website which has information only about gold production from 1681 to 2015. The first visualisation was also created from the same the data set, but they have not mentioned how they got other parts of the data. Therefore, I will just create visualisation from 1815 to 2015.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
7/5/2024, 9 : 22 PM Assignment 2 Page 4 of 6 file:///Users/zabiullahbahrami/Assignment_2_RMarkdown_Template/Assignment_2_RMarkdown_Template.html To avoid over plotting I will only show only 6 major gold producing countries. If I add as many countries as the first visualisation, my plot will be overcrowded and unable to see understand. I have added interactivity into my visualisation, so that the audience can better understand the data and they can focus on just one country. Code The following code was used to fix the issues identified in the original. Reading the data set. #Reading the data #Manipulation of the data has been done in Excel. gold<-read_xlsx('gold3.xlsx',sheet = 2) head(gold,n=10) ## # A tibble: 10 × 3 ## Country Year `Gold Production` ## <chr> <dbl> <dbl> ## 1 Australia 1815 0 ## 2 Canada 1815 0 ## 3 China 1815 0 ## 4 Russia 1815 0 ## 5 South Africa 1815 0 ## 6 United States 1815 1 ## 7 Australia 1816 0 ## 8 Canada 1816 0 ## 9 China 1816 0 ## 10 Russia 1816 0 Reconstruction The following plot fixes the main issues in the original.
7/5/2024, 9 : 22 PM Assignment 2 Page 5 of 6 file:///Users/zabiullahbahrami/Assignment_2_RMarkdown_Template/Assignment_2_RMarkdown_Template.html #We use geom_line() from ggplot2 p1 <-ggplot(gold,aes(x=Year,y=`Gold Production`, color=Country)) + geom_line() + labs(title = 'Gold production from (1815-2015)', x='Year', y="Gold Production (in tones)") + #I changed the theme using r eplace function theme_minimal() %+replace% theme(plot.title = element_text(size=20, hjust=0.5), legend.key.width = unit(0.5, "cm"), legend.key.height = unit(0.3, "cm"), legend.text = element_text(size = 8), legend.title = element_text(size = 8))+ #In the above steps, we have adjusted the title and legend scale_color_brewer(palette= "Set2") #added color p1 References The reference to the original data visualisation choose, the data source(s) used for the reconstruction and any other sources used for this assignment are as follows: VisualCapitalist.com (2023) 200 years of Global Gold Production by country. Available at: “https://elements.visualcapitalist.com/200-years-of-global-gold-production-by-country/
7/5/2024, 9 : 22 PM Assignment 2 Page 6 of 6 file:///Users/zabiullahbahrami/Assignment_2_RMarkdown_Template/Assignment_2_RMarkdown_Template.html (https://elements.visualcapitalist.com/200-years-of-global-gold-production-by-country/)” Forbes.com (2021) Update: Top 10 Gold Producing Countries. Availabe at: “https://www.forbes.com/sites/greatspeculations/2021/06/23/updated-top-10-gold-producing- countries/?sh=6633cce62ce2 (https://www.forbes.com/sites/greatspeculations/2021/06/23/updated-top-10-gold-producing- countries/?sh=6633cce62ce2)” ourworldindata.com. Gold production, 1681 to 2015. Available at: “https://ourworldindata.org/grapher/gold-production (https://ourworldindata.org/grapher/gold- production)”
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help