The dataframe once you load it into R looks like the following:
setwd("/Users/bgpopescu/Dropbox/john_cabot/teaching/big_data/week4/data/")#Step1: Loading the datalife_exp_urb <-read.csv(file ='./life_exp_urb.csv')#Step2: Examining the first five entrieshead(life_exp_urb, n=5)
“Graphical excellence is the well-designed presentation of interesting data—a matter of substance, of statistics, and of design … [It] consists of complex ideas communicated with clarity, precision, and efficiency.[…] [It] is that which gives to the viewer the greatest number of ideas in the shortest time with the least ink in the smallest space… And graphical excellence requires telling the truth about the data.”
Edward Tufte, The Visual Display of Quantitative Information, p. 51
Bad Visualizations 1
Bad Visualizations 1
The figure has way too many categories
Bad Visualizations 2
Bad Visualizations 2
The categories in a pie chart should add up to 100%
The areas should correspond to the percentage size
Bad Visualizations 3
Bad Visualizations 3
The categories in a pie chart should add up to 100%
Bad Visualizations 4
Bad Visualizations 4
Bad Visualizations 5
Bad Visualizations 5
Goals of Visualization
R can help us achieve great visualizations with the help of ggplot2
Goals of Visualization
R can help us achieve great visualizations with the help of ggplot2
Goals of Visualization
R can help us achieve great visualizations with the help of ggplot2
Visualizations
Part of visualization is how we translate essential content to different forms for specific audiences
Visualizations should ultimately tell stories
Truth comes from a combination of content and form.
Colors
On the most fundamental level, we need to use the right colors for our visualizations
This is relevant for:
Clarity and Readability: users can distinguish among different categories
Accessibility: color-blind people can also see the different categories in your visualization
Emphasis: the right colors can be used to emphasize specific aspects of the data or analysis
Consistency: using a consistent color palette for the same project is helpful