This is a template file. The example included is not considered a good example to follow for Assignment 2. Remove this warning prior to submitting.
Click the Original, Code and Reconstruction tabs to read about the issues and how they were fixed.
Objective
The pie chart shows the global GDP of 40 countries representing the largest economies in the world, according to the World Bank’s 2015 data.The pie chart aims to display the gross domestic product of countries at the level of continents and its global impact in that year and enable a comparison between countries of the world and continents .The graph was depicted to show the ratio of countries ’GDP to the global economy by data and market research teachers and published it on the Cost Information website (HowMuch.ne) to serve non-digital researchers.
The visualisation chosen had the following three main issues:
The Pie chart depiction contains two types of comparison, a comparison between continents in the global product and a comparison between countries in the GDP, which disperses the audience’s focus in determining difference between countries or between continents for the similarity of some ratios of countries and continents as well as some countries have a small area, which made it difficult for the author to name it in the pie chart.
Reference
The following code was used to fix the issues identified in the original.
library(googleVis)
df <- data.frame(group_1=c('Continents 1', 'Continents 1', 'Continents 1', 'Continents 1', 'Continents 1', 'Continents 1', 'Continents 1', "Africa 2 ", "Africa 2 ", "Africa 2 ", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Asia 2", "Europe 2", "Europe 2", "Europe 2", "Europe 2", "Europe 2", "Europe 2", "Europe 2", "Europe 2", "Europe 2", "Europe 2", "Europe 2", "Europe 2", "Europe 2", "Europe 2","North America 2 ","North America 2 ","North America 2 ","South America 2 ","South America 2 ","South America 2 ","South America 2 ")
, group_2=c("Reat of the world 2 ","Australia 2","Africa 2 ", "Asia 2", "Europe 2","North America 2 ","South America 2 ", "South Africa","Egypt", "Nigeria","China "," Japan","India","South Korea","Russia ", "Indonesia","Turkey","SaudiArabia","Iran","Thailand","UAE","Singapore","Isreal","Hong Kong","Malasya","Philippines","Germany "," UK","France","Italy","Spain", "Netherlands","Switzerland","Sweden","Poland","Belgium","Austria","Ireland","Denmark","Norway","United States","Canada", "Mexico","Brazil","Argentina", "Colombia","Venezuela"), Percent=c(9.41,1.81,1.52,33.84,21.37,27.95,4.07,0.42,0.45,0.65,14.84,5.91,2.83,1.86,1.8,1.16,0.97,0.87,0.57,0.53,0.5,0.39,0.4,0.42,0.4,0.39,4.54,3.85,3.26,2.46,1.62,1.01,0.9,0.67,0.64,0.61,0.51,0.38,0.4,0.52,24.32,2.09,1.54,2.39,0.79,0.39,0.5))
Data Reference
The following plot fixes the main issues in the original.