Click the Original, Code and Reconstruction tabs to read about the issues and how they were fixed.

Original


Source: TITLE MAX : THE REVENUE OF FAST FOOD CHAINS IN AMERICA.


Objective

The objective of the author is to rank the fast food chains in America based on the total sales revenue earned by the outlet .As per my understanding, the target audience here are the business investors ,owners and the potential franchise buyers.

Based on the perception of the target audience, this can help them to decide which franchise to invest into or if they wish to own a franchise then which franchise to opt for based on the success and sales revenue of that particular food outlet chain.

  • Issue 1

In the visualization we can see a case of visual perception where the sales of the food chain are shown as fries. This creates a confusion whether the visualization is trying to show the overall sale by the food outlet or the sales of fries made by each food outlet.The use of fries to visualise the revenue scale fails to plot the rankings of the food outlets. Especially, the outlets at the lower end with low revenue cannot be distinguished from each other.

  • Issue 2

In the data visualization on the left hand side, as the fries denote the sales made by each outlet, due to the absence of scale or sale value, it fails to showcase by how much the sales differ between the food outlet chains. This becomes difficult for the target audience to compare the sales made by the outlets combined and as an individual.

  • Issue 3

In the visualization, we can see a case of deception as well, as the color scheme on the bottle and the fries is that of Mc Donalds,it makes the reader think of Mc Donalds and fails to to focuss on the sales made by the other food outlets. Also, the logos of the oulets are not visible which makes it hard to comprehend the sales made by the food outlets.

Reference

Carly Hallman, Title Max, Money & Finance. Retrieved 12 September 2020, from Title Max Website : https://www.titlemax.com/discovery-center/money-finance/the-revenue-of-fast-food-chains-in-america/

Code

The following code was used to fix the issues identified in the original visualisation.

#import packages
library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
library(ggplot2)
library(readxl)

##import data

food <- read_xlsx("Top 30 US fast food chains.xlsx")

##renaming the columns

colnames(food)<- c("Rank","Chain","Sales","Locations")

##Scaling the Sales column to 100th of Million

food$Sales <- food$Sales/100000000

##plotting the graph

f <-  ggplot(food, aes(x=reorder(Chain,-Sales),y=Sales))+geom_bar(stat = "identity", fill="steel blue")

## Formatting the x axis and y axis title,font, text and ticks angle
##Formatting the plot title, plot label and  background color

f <- f+ theme(axis.text.x = element_text(angle = 90,face = "bold"),axis.text.y = element_text(face="bold"), axis.title.x = element_text(face="bold"), axis.title.y = element_text(face="bold"),plot.title = element_text(size=20,face="bold"), panel.background = element_rect( fill="#f5edb3",colour = "#f5edb3",
                                size = 2, linetype = "solid"))

##Formatting the text labels, x axis labels and y axis labels

f <- f+geom_text(aes(label=Sales,fontface="bold"),vjust=-0.6)+ xlab("Outlet Chain")+ylab("Sales(In Million)")

## Fomratting the title of the plot ,size of the tile and alignement of the title

food_plot<- f+ggtitle("REVENUE OF FAST FOOD RESTURANTS IN AMERICA")+theme(plot.title = element_text(hjust = 0.5))

Data Reference

Makeover Monday 2019/W50, 2019/W50:Ranked: Biggest Fast Food Chains in America. Retrieved 15 September, 2020, from Data World website: https://data.world/makeovermonday/2019w50

Reconstruction

The following plot fixes the main issues in the original.