SlideShare a Scribd company logo
Grammar of Graphics: The Secret
Sauce of Powerful Data Stories
Ganes Kesari
Co-founder & Head of Analytics,
Gramener
DVNY
1-Nov ‘18
“Lions are mammals belonging to the cat
family eating is the ingestion of food to
provide an organism with energy giraffes
are the tallest living animals”.
“Lions eat giraffes”.
Languages allow fluid construction
Every word in a sentence
has grammatical definition.
Slight changes in words can
dramatically alter the
meaning of a sentence.
Area Sales Growth
North 5 3
East 25 10
West 15 5
South 20 8
Central 10 12
0
5
10
15
20
25
30
0 5 10 15
Sales is the width
Growth is the X-axis
Growth is the height
Sales is the Y-axis
Sales is the angle Growth is the colour
Scatterplot
Marimekko
Donut
Fluid representation with data
http://www.science-craft.com/2014/07/08/introducing-the-grammar-of-graphics-plotting-concept/
A foundation for Grammar of Graphics
Sentences are elegant
compositions of carefully chosen
grammatical elements that
convey precise & clear messages.
Visualizations are an elegant
mapping of data onto the right
visual encodings to tell a story.
Grammar of Graphics
Charts are NOT monolithic entities
Theme
Coordinates
Statistics
Facets
Geometries
Aesthetics
Data
We have seven layered grammatical elements to play with
A simple tutorial
The data..
The tool..
on
Map Price to x, Sales to y & plot as
points
ggplot(data, aes(x=Price, y=Sales)) + geom_point()
Layers 1–2–3: Data - Aesthetics - Geometries
ggplot(data, aes(x=Price, y=Sales, color=Region)) + geom_point()
Let’s color the points by Region
Layers 1–2–3: Data - Aesthetics - Geometries
ggplot(data, aes(x=Price, y=Sales, color=Region, size=Volume)) +
geom_point()
Let’s also size the bubbles by Volume
Layers 1–2–3: Data - Aesthetics - Geometries
We can plot Regions side by side
(facets)
Layer 4: Facets
ggplot(data, aes(x=Price, y=Sales, color=Region, size=Volume)) +
geom_point() + facet_wrap(~Region)
We’ll compute the mean Sales at each
price point
Layer 5: Statistics
ggplot(data, aes(x=Price, y=Sales)) + stat_summary_bin(fun.y
= “mean”, geom = “bar”)
We’ll plot this on the Polar coordinates
instead of the default x-y (Cartesian)
Layer 6: Coordinates
ggplot(data, aes(x=Price, y=Sales, color=Region, size=Volume)) +
geom_point() + facet_wrap(~Region) + coord_polar()
Switching back to x-y plot, we’ll now
throw in some non-data ink
Layer 7: Theme
ggplot(data, aes(x=Price, y=Sales, color=Region, size=Volume)) +
geom_point() + theme_bw()
Grammar of Graphics: The 7 Layers
Describes all the non-data ink
Plotting space for the data
Statistical models & summaries
Rows and columns of sub-plots
Shapes used to represent the data
Scales onto which data is mapped
The actual variables to be plotted
Theme
Coordinates
Statistics
Facets
Geometries
Aesthetics
Data
NAPOLEAN’S RUSSIAN CAMPAIGN OF 1812
Source: http://en.wikipedia.org/wiki/File:Minard.png
a
An Experiment !
What would happen if we recreate the legendary Visual
ignoring the right Grammar or relevant Encodings?
LET’S EXTRACT NAPOLEAN’S CAMPAIGN DATA…
The trail Locations Weather
Soldier Loss Soldier Loss% Key Battles/Landmarks Temp Drop
412,000 97.63% 47 -30
Napoleon’s Russian Campaign (1812-1813)
A QUICK COMPARISON
In Summary
Don’t be locked down by a limited library of charts
Invent your visuals and compose freely
Build a foundation for nimble and powerful data stories
Grammar makes language expressive.
A language that has words and no grammar
expresses only as many ideas as there are words.
- Leland Wilkinson
“
23
@kesaritweets
@kesari
gkesari.com
INSIGHTS
AI & MACHINE
LEARNING
SERVICES
VISUAL
NARRATIVES
STORYTELLING
Creative ThinkingCritical Reasoning
SOFTWARE
THROUGH
DATA STORY TELLING WITH GRAMENER
THANK YOU!
Twitter
Medium
Website

More Related Content

What's hot

Best Practices for Killer Data Visualization
Best Practices for Killer Data VisualizationBest Practices for Killer Data Visualization
Best Practices for Killer Data Visualization
Qualtrics
 
R and Visualization: A match made in Heaven
R and Visualization: A match made in HeavenR and Visualization: A match made in Heaven
R and Visualization: A match made in Heaven
Edureka!
 
Data visualization
Data visualizationData visualization
Data visualization
Kaustubh Srivastava
 
Data Analaytics.04. Data visualization
Data Analaytics.04. Data visualizationData Analaytics.04. Data visualization
Data Analaytics.04. Data visualization
Alex Rayón Jerez
 
DATABASE & WEBGIS - GIS BOOTCAMP
DATABASE & WEBGIS - GIS BOOTCAMPDATABASE & WEBGIS - GIS BOOTCAMP
DATABASE & WEBGIS - GIS BOOTCAMPKevin Ng'eno
 
Data visualization
Data visualizationData visualization
Data visualization
Maheshwor Shrestha
 
Introduction to Data Visualization
Introduction to Data VisualizationIntroduction to Data Visualization
Introduction to Data Visualization
Stephen Tracy
 
Data Visualization Techniques
Data Visualization TechniquesData Visualization Techniques
Data Visualization TechniquesAllAnalytics
 
Data visualization
Data visualizationData visualization
Data visualization
Jan Willem Tulp
 
Data visualization-tools
Data visualization-toolsData visualization-tools
Data visualization-tools
Rolando Fajardo CPE, RN, MAN, MIM
 
Smarter Fraud Detection With Graph Data Science
Smarter Fraud Detection With Graph Data ScienceSmarter Fraud Detection With Graph Data Science
Smarter Fraud Detection With Graph Data Science
Neo4j
 
Advance Data Visualization and Storytelling Virtual Workshop
Advance Data Visualization and Storytelling Virtual WorkshopAdvance Data Visualization and Storytelling Virtual Workshop
Advance Data Visualization and Storytelling Virtual Workshop
CCG
 
03. Data Exploration.pptx
03. Data Exploration.pptx03. Data Exploration.pptx
03. Data Exploration.pptx
Sarojkumari55
 
Introduction to dataset
Introduction to datasetIntroduction to dataset
Introduction to dataset
datamantra
 
Data visualization
Data visualizationData visualization
Data visualization
Sushil kasar
 
Graph Analytics
Graph AnalyticsGraph Analytics
Graph Analytics
Khalid Salama
 
Data Wrangling_1.pptx
Data Wrangling_1.pptxData Wrangling_1.pptx
Data Wrangling_1.pptx
PallabiSahoo5
 
Introduction to Data Visualization
Introduction to Data Visualization Introduction to Data Visualization
Introduction to Data Visualization
Ana Jofre
 
Data Visualization Design Best Practices Workshop
Data Visualization Design Best Practices WorkshopData Visualization Design Best Practices Workshop
Data Visualization Design Best Practices Workshop
JSI
 
Data Visualization 101: How to Design Charts and Graphs
Data Visualization 101: How to Design Charts and GraphsData Visualization 101: How to Design Charts and Graphs
Data Visualization 101: How to Design Charts and Graphs
Visage
 

What's hot (20)

Best Practices for Killer Data Visualization
Best Practices for Killer Data VisualizationBest Practices for Killer Data Visualization
Best Practices for Killer Data Visualization
 
R and Visualization: A match made in Heaven
R and Visualization: A match made in HeavenR and Visualization: A match made in Heaven
R and Visualization: A match made in Heaven
 
Data visualization
Data visualizationData visualization
Data visualization
 
Data Analaytics.04. Data visualization
Data Analaytics.04. Data visualizationData Analaytics.04. Data visualization
Data Analaytics.04. Data visualization
 
DATABASE & WEBGIS - GIS BOOTCAMP
DATABASE & WEBGIS - GIS BOOTCAMPDATABASE & WEBGIS - GIS BOOTCAMP
DATABASE & WEBGIS - GIS BOOTCAMP
 
Data visualization
Data visualizationData visualization
Data visualization
 
Introduction to Data Visualization
Introduction to Data VisualizationIntroduction to Data Visualization
Introduction to Data Visualization
 
Data Visualization Techniques
Data Visualization TechniquesData Visualization Techniques
Data Visualization Techniques
 
Data visualization
Data visualizationData visualization
Data visualization
 
Data visualization-tools
Data visualization-toolsData visualization-tools
Data visualization-tools
 
Smarter Fraud Detection With Graph Data Science
Smarter Fraud Detection With Graph Data ScienceSmarter Fraud Detection With Graph Data Science
Smarter Fraud Detection With Graph Data Science
 
Advance Data Visualization and Storytelling Virtual Workshop
Advance Data Visualization and Storytelling Virtual WorkshopAdvance Data Visualization and Storytelling Virtual Workshop
Advance Data Visualization and Storytelling Virtual Workshop
 
03. Data Exploration.pptx
03. Data Exploration.pptx03. Data Exploration.pptx
03. Data Exploration.pptx
 
Introduction to dataset
Introduction to datasetIntroduction to dataset
Introduction to dataset
 
Data visualization
Data visualizationData visualization
Data visualization
 
Graph Analytics
Graph AnalyticsGraph Analytics
Graph Analytics
 
Data Wrangling_1.pptx
Data Wrangling_1.pptxData Wrangling_1.pptx
Data Wrangling_1.pptx
 
Introduction to Data Visualization
Introduction to Data Visualization Introduction to Data Visualization
Introduction to Data Visualization
 
Data Visualization Design Best Practices Workshop
Data Visualization Design Best Practices WorkshopData Visualization Design Best Practices Workshop
Data Visualization Design Best Practices Workshop
 
Data Visualization 101: How to Design Charts and Graphs
Data Visualization 101: How to Design Charts and GraphsData Visualization 101: How to Design Charts and Graphs
Data Visualization 101: How to Design Charts and Graphs
 

More from Ganes Kesari

Project Management Careers in Data Science
Project Management Careers in Data ScienceProject Management Careers in Data Science
Project Management Careers in Data Science
Ganes Kesari
 
How AI Can Help Anonymize Clinical Trial Data
How AI Can Help Anonymize Clinical Trial DataHow AI Can Help Anonymize Clinical Trial Data
How AI Can Help Anonymize Clinical Trial Data
Ganes Kesari
 
Penn State Guest Lecture: Business Forecasting in Real Life
Penn State Guest Lecture: Business Forecasting in Real LifePenn State Guest Lecture: Business Forecasting in Real Life
Penn State Guest Lecture: Business Forecasting in Real Life
Ganes Kesari
 
500 startups cognitive bias in decision making - ganes kesari - nov 2021 - final
500 startups cognitive bias in decision making - ganes kesari - nov 2021 - final500 startups cognitive bias in decision making - ganes kesari - nov 2021 - final
500 startups cognitive bias in decision making - ganes kesari - nov 2021 - final
Ganes Kesari
 
RBS Guest Lecture - Actionable Customer Intelligence with Journey Mapping
RBS Guest Lecture - Actionable Customer Intelligence with Journey MappingRBS Guest Lecture - Actionable Customer Intelligence with Journey Mapping
RBS Guest Lecture - Actionable Customer Intelligence with Journey Mapping
Ganes Kesari
 
AI - Savior or Supervillain?
AI - Savior or Supervillain?AI - Savior or Supervillain?
AI - Savior or Supervillain?
Ganes Kesari
 
5 Steps to Transform into a Data-Driven Organization - Ganes Kesari - Gramen...
 5 Steps to Transform into a Data-Driven Organization - Ganes Kesari - Gramen... 5 Steps to Transform into a Data-Driven Organization - Ganes Kesari - Gramen...
5 Steps to Transform into a Data-Driven Organization - Ganes Kesari - Gramen...
Ganes Kesari
 
Applications of AI in Supply Chain Management: Hype versus Reality
Applications of AI in Supply Chain Management: Hype versus RealityApplications of AI in Supply Chain Management: Hype versus Reality
Applications of AI in Supply Chain Management: Hype versus Reality
Ganes Kesari
 
How AI can Save Lives with the Help of Satellite Imagery
How AI can Save Lives with the Help of Satellite ImageryHow AI can Save Lives with the Help of Satellite Imagery
How AI can Save Lives with the Help of Satellite Imagery
Ganes Kesari
 
Saving lives by applying AI to Satellite imagery
Saving lives by applying AI to Satellite imagerySaving lives by applying AI to Satellite imagery
Saving lives by applying AI to Satellite imagery
Ganes Kesari
 
What Really is AI and How will it Shape our Future?
What Really is AI and How will it Shape our Future?What Really is AI and How will it Shape our Future?
What Really is AI and How will it Shape our Future?
Ganes Kesari
 
How AI can help you make your Audience Sit up and take Notice
How AI can help you make your Audience Sit up and take NoticeHow AI can help you make your Audience Sit up and take Notice
How AI can help you make your Audience Sit up and take Notice
Ganes Kesari
 
'Recession-proofing' your Business with Data
'Recession-proofing' your Business with Data'Recession-proofing' your Business with Data
'Recession-proofing' your Business with Data
Ganes Kesari
 
What's the Value of Data Science for Organizations: Tips for Invincibility in...
What's the Value of Data Science for Organizations: Tips for Invincibility in...What's the Value of Data Science for Organizations: Tips for Invincibility in...
What's the Value of Data Science for Organizations: Tips for Invincibility in...
Ganes Kesari
 
How Brands can use AI for Actionable Customer Intelligence
How Brands can use AI for Actionable Customer IntelligenceHow Brands can use AI for Actionable Customer Intelligence
How Brands can use AI for Actionable Customer Intelligence
Ganes Kesari
 
Transform your Brand's Customer Experience by using AI
Transform your Brand's Customer Experience by using AITransform your Brand's Customer Experience by using AI
Transform your Brand's Customer Experience by using AI
Ganes Kesari
 
How to Build Data Science Teams
How to Build Data Science TeamsHow to Build Data Science Teams
How to Build Data Science Teams
Ganes Kesari
 
How Data Science can help Understand your Customers Better
How Data Science can help Understand your Customers BetterHow Data Science can help Understand your Customers Better
How Data Science can help Understand your Customers Better
Ganes Kesari
 
Why is it difficult to achieve strategic differentiation using AI
Why is it difficult to achieve strategic differentiation using AIWhy is it difficult to achieve strategic differentiation using AI
Why is it difficult to achieve strategic differentiation using AI
Ganes Kesari
 
How Organizations can gain Strategic Advantage when Everyone is applying AI
How Organizations can gain Strategic Advantage when Everyone is applying AIHow Organizations can gain Strategic Advantage when Everyone is applying AI
How Organizations can gain Strategic Advantage when Everyone is applying AI
Ganes Kesari
 

More from Ganes Kesari (20)

Project Management Careers in Data Science
Project Management Careers in Data ScienceProject Management Careers in Data Science
Project Management Careers in Data Science
 
How AI Can Help Anonymize Clinical Trial Data
How AI Can Help Anonymize Clinical Trial DataHow AI Can Help Anonymize Clinical Trial Data
How AI Can Help Anonymize Clinical Trial Data
 
Penn State Guest Lecture: Business Forecasting in Real Life
Penn State Guest Lecture: Business Forecasting in Real LifePenn State Guest Lecture: Business Forecasting in Real Life
Penn State Guest Lecture: Business Forecasting in Real Life
 
500 startups cognitive bias in decision making - ganes kesari - nov 2021 - final
500 startups cognitive bias in decision making - ganes kesari - nov 2021 - final500 startups cognitive bias in decision making - ganes kesari - nov 2021 - final
500 startups cognitive bias in decision making - ganes kesari - nov 2021 - final
 
RBS Guest Lecture - Actionable Customer Intelligence with Journey Mapping
RBS Guest Lecture - Actionable Customer Intelligence with Journey MappingRBS Guest Lecture - Actionable Customer Intelligence with Journey Mapping
RBS Guest Lecture - Actionable Customer Intelligence with Journey Mapping
 
AI - Savior or Supervillain?
AI - Savior or Supervillain?AI - Savior or Supervillain?
AI - Savior or Supervillain?
 
5 Steps to Transform into a Data-Driven Organization - Ganes Kesari - Gramen...
 5 Steps to Transform into a Data-Driven Organization - Ganes Kesari - Gramen... 5 Steps to Transform into a Data-Driven Organization - Ganes Kesari - Gramen...
5 Steps to Transform into a Data-Driven Organization - Ganes Kesari - Gramen...
 
Applications of AI in Supply Chain Management: Hype versus Reality
Applications of AI in Supply Chain Management: Hype versus RealityApplications of AI in Supply Chain Management: Hype versus Reality
Applications of AI in Supply Chain Management: Hype versus Reality
 
How AI can Save Lives with the Help of Satellite Imagery
How AI can Save Lives with the Help of Satellite ImageryHow AI can Save Lives with the Help of Satellite Imagery
How AI can Save Lives with the Help of Satellite Imagery
 
Saving lives by applying AI to Satellite imagery
Saving lives by applying AI to Satellite imagerySaving lives by applying AI to Satellite imagery
Saving lives by applying AI to Satellite imagery
 
What Really is AI and How will it Shape our Future?
What Really is AI and How will it Shape our Future?What Really is AI and How will it Shape our Future?
What Really is AI and How will it Shape our Future?
 
How AI can help you make your Audience Sit up and take Notice
How AI can help you make your Audience Sit up and take NoticeHow AI can help you make your Audience Sit up and take Notice
How AI can help you make your Audience Sit up and take Notice
 
'Recession-proofing' your Business with Data
'Recession-proofing' your Business with Data'Recession-proofing' your Business with Data
'Recession-proofing' your Business with Data
 
What's the Value of Data Science for Organizations: Tips for Invincibility in...
What's the Value of Data Science for Organizations: Tips for Invincibility in...What's the Value of Data Science for Organizations: Tips for Invincibility in...
What's the Value of Data Science for Organizations: Tips for Invincibility in...
 
How Brands can use AI for Actionable Customer Intelligence
How Brands can use AI for Actionable Customer IntelligenceHow Brands can use AI for Actionable Customer Intelligence
How Brands can use AI for Actionable Customer Intelligence
 
Transform your Brand's Customer Experience by using AI
Transform your Brand's Customer Experience by using AITransform your Brand's Customer Experience by using AI
Transform your Brand's Customer Experience by using AI
 
How to Build Data Science Teams
How to Build Data Science TeamsHow to Build Data Science Teams
How to Build Data Science Teams
 
How Data Science can help Understand your Customers Better
How Data Science can help Understand your Customers BetterHow Data Science can help Understand your Customers Better
How Data Science can help Understand your Customers Better
 
Why is it difficult to achieve strategic differentiation using AI
Why is it difficult to achieve strategic differentiation using AIWhy is it difficult to achieve strategic differentiation using AI
Why is it difficult to achieve strategic differentiation using AI
 
How Organizations can gain Strategic Advantage when Everyone is applying AI
How Organizations can gain Strategic Advantage when Everyone is applying AIHow Organizations can gain Strategic Advantage when Everyone is applying AI
How Organizations can gain Strategic Advantage when Everyone is applying AI
 

Recently uploaded

Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Enterprise Wired
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
jerlynmaetalle
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
AnirbanRoy608946
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 

Recently uploaded (20)

Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 

Grammar of Graphics: The secret sauce of Powerful Data Stories

  • 1. Grammar of Graphics: The Secret Sauce of Powerful Data Stories Ganes Kesari Co-founder & Head of Analytics, Gramener DVNY 1-Nov ‘18
  • 2. “Lions are mammals belonging to the cat family eating is the ingestion of food to provide an organism with energy giraffes are the tallest living animals”. “Lions eat giraffes”.
  • 3. Languages allow fluid construction Every word in a sentence has grammatical definition. Slight changes in words can dramatically alter the meaning of a sentence.
  • 4. Area Sales Growth North 5 3 East 25 10 West 15 5 South 20 8 Central 10 12 0 5 10 15 20 25 30 0 5 10 15 Sales is the width Growth is the X-axis Growth is the height Sales is the Y-axis Sales is the angle Growth is the colour Scatterplot Marimekko Donut Fluid representation with data
  • 5. http://www.science-craft.com/2014/07/08/introducing-the-grammar-of-graphics-plotting-concept/ A foundation for Grammar of Graphics Sentences are elegant compositions of carefully chosen grammatical elements that convey precise & clear messages. Visualizations are an elegant mapping of data onto the right visual encodings to tell a story.
  • 6. Grammar of Graphics Charts are NOT monolithic entities Theme Coordinates Statistics Facets Geometries Aesthetics Data We have seven layered grammatical elements to play with
  • 7. A simple tutorial The data.. The tool.. on
  • 8. Map Price to x, Sales to y & plot as points ggplot(data, aes(x=Price, y=Sales)) + geom_point() Layers 1–2–3: Data - Aesthetics - Geometries
  • 9. ggplot(data, aes(x=Price, y=Sales, color=Region)) + geom_point() Let’s color the points by Region Layers 1–2–3: Data - Aesthetics - Geometries
  • 10. ggplot(data, aes(x=Price, y=Sales, color=Region, size=Volume)) + geom_point() Let’s also size the bubbles by Volume Layers 1–2–3: Data - Aesthetics - Geometries
  • 11. We can plot Regions side by side (facets) Layer 4: Facets ggplot(data, aes(x=Price, y=Sales, color=Region, size=Volume)) + geom_point() + facet_wrap(~Region)
  • 12. We’ll compute the mean Sales at each price point Layer 5: Statistics ggplot(data, aes(x=Price, y=Sales)) + stat_summary_bin(fun.y = “mean”, geom = “bar”)
  • 13. We’ll plot this on the Polar coordinates instead of the default x-y (Cartesian) Layer 6: Coordinates ggplot(data, aes(x=Price, y=Sales, color=Region, size=Volume)) + geom_point() + facet_wrap(~Region) + coord_polar()
  • 14. Switching back to x-y plot, we’ll now throw in some non-data ink Layer 7: Theme ggplot(data, aes(x=Price, y=Sales, color=Region, size=Volume)) + geom_point() + theme_bw()
  • 15. Grammar of Graphics: The 7 Layers Describes all the non-data ink Plotting space for the data Statistical models & summaries Rows and columns of sub-plots Shapes used to represent the data Scales onto which data is mapped The actual variables to be plotted Theme Coordinates Statistics Facets Geometries Aesthetics Data
  • 16. NAPOLEAN’S RUSSIAN CAMPAIGN OF 1812 Source: http://en.wikipedia.org/wiki/File:Minard.png a
  • 17. An Experiment ! What would happen if we recreate the legendary Visual ignoring the right Grammar or relevant Encodings?
  • 18. LET’S EXTRACT NAPOLEAN’S CAMPAIGN DATA… The trail Locations Weather
  • 19. Soldier Loss Soldier Loss% Key Battles/Landmarks Temp Drop 412,000 97.63% 47 -30 Napoleon’s Russian Campaign (1812-1813)
  • 21. In Summary Don’t be locked down by a limited library of charts Invent your visuals and compose freely Build a foundation for nimble and powerful data stories
  • 22. Grammar makes language expressive. A language that has words and no grammar expresses only as many ideas as there are words. - Leland Wilkinson “
  • 23. 23 @kesaritweets @kesari gkesari.com INSIGHTS AI & MACHINE LEARNING SERVICES VISUAL NARRATIVES STORYTELLING Creative ThinkingCritical Reasoning SOFTWARE THROUGH DATA STORY TELLING WITH GRAMENER THANK YOU! Twitter Medium Website

Editor's Notes

  1. The Russian Campaign of Napoleon has been immortalized by Charles Minard’s Visualization. This is an effective example of how multiple data attributes are conveyed succinctly by efficient use of the visual encodings.