SlideShare a Scribd company logo
Communicating Results
Lab 4: your 5-7 things
Communicating with data
Really common visualisations
Quite common visualisations
Visualisation tools: Matplotlib and Tableau
Doing more: D3 and beyond
Communicating with Data
Engage your audience
Who are these people?
Demographics: which languages? What red flags?
What communications styles are they used to?
What channels are you using? Website, printed media, SMS?
What have you got for them?
Insights? answers? surprises?
Exploring or explaining?
Do you want to engage, persuade, inform or entertain?
Design rules
Storytelling:
Design for your medium (e.g paper)
Learn from the storytellers: have a beginning, middle and end
Use drill-down: summarise with visuals, but allow users to reach the data
Frame your message - why are you doing this, how did you get here
Visualisations:
Have graphical integrity (e.g. start bars at zero)
Really Common Visualisations
Multi-Line graph
Stacked Column Chart
Stacked Barchart
Scatterplot
Dashboards
Dashboards
More visualisation types
Name That Visualisation!
Common Visualisation Tools
Choosing a Visualisation Tool
What do you want to do?
Standard visualisations, or something special?
Inputs: files (e.g. CSV) or streaming data? Maps?
Non-roman languages (Arabic, Mandarin etc)?
Interactive or static?
Where do you want to do it?
Online or offline?
Any other restrictions?
Excel
Limited set of visualisation types
Not interactive
Offline
Static
Not free
Relatively easy
Widely used
Matplotlib
Python visualisation library
Not interactive
Not the prettiest (but does have ways to
make it prettier, e.g. Seaborn)
Good for quick-and-dirty views of data
Offline + Online
Free
Tableau
Tableau Public
Free
Interactive
Excel or text (CSV) import only
Public, and needs internet connection
Tableau Desktop
Not free (but free to students who ask)
Interactive
D3
Free
Interactive
Very very flexible = almost any
diagram you want
Steep learning curve
Works offline
Other Common Tools
Piktochart
Google fusion tables
Ggplot
Highcharts
NVD3
Matplotlib and Tableau exercises
Exercise: draw a line chart in Matplotlib
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 10, 100)
y = np.sin(x)
plt.plot(x, y)
That line chart
Exercise: draw a scatterplot
import matplotlib.pyplot as plt
import numpy as np
x = np.array([1,4,3,2,6,4,7,8])
y = np.array([3,5,4,3,7,6,4,9])
plt.scatter(x, y)
Add labels
fig, ax = plt.subplots()
plt.scatter(x, y)
ax.set_ylabel('This is the Y axis')
ax.set_xlabel('This is the X axis')
ax.set_title('This is the Title')
Exercise: Draw a stacked column chart in Tableau
Do this: Import data into Tableau
Get a copy of example file “cleaned_popstats.csv”
Open Tableau Public (click on the executable)
Click on “Text File”
Select “cleaned_popstats.csv”, then “open”
Congratulations - you’ve got data into Tableau
Now click on “sheet 1” at the bottom of the page
Do this: add rows
From sheet1:
● You should see a “show me” box on the top RHS: click on it, then the thing
that looks like a column chart (sigh: Tableau calls it “stacked bar”)
● Drag “asylum seekers” from under “Measures” to the “rows” box
Do this: add columns
● Drag “origin/ returned from” from under
“dimensions” to the “columns” box
● Right-click on “origin/returned from” in the
“columns” box.
● Click “sort…”
● Click “descending”
● Click “field”
● Click “okay”
Do this: remove a column from the graph
Right-click on “various” in the graph.
Click “Exclude”
Watch the graph scale to the new biggest value
(Democratic Republic of the Congo)
Do this: add colours
● Drag “Year” to color (under “Marks”)
The green is okay, but not easy to read:
● Click the little triangle that appears when
you hover over the new “Year” colours
box
● Click “Edit colors”
● Click “stepped color”
● Click the bar under “Palette”; click “Red
Blue Diverging” then “okay”
A stacked column chart in Tableau
D3 and Beyond
Drawing a Chord Diagram in D3: Online
Use the terminal window
cd to the directory containing file 4.3_d3_chord_online.html
In the terminal window, type:
python -m http.server 8899 &
Then go to http://0.0.0.0:8899/4.3_d3_chord_online.html in your browser
And hover your mouse over the circle edges...
(to exit, type control-c)
Drawing a Chord Diagram in D3: Offline
Copy your d3.js.zip file and the 4.4_d3_chord_offline.html file into a directory
Unzip d3.js.zip
In the directory your code is in, type:
python -m http.server 8899 &
Then go to http://0.0.0.0:8899/4.4_d3_chord_offline.html in your browser
And hover your mouse over the circle edges...
(to exit, type control-c)
That chord diagram
Communication doesn’t have to be complex
Communication doesn’t have to be “standard”
Exercises
Exercise: Design your visuals
Use pen and paper (or post-its) to design visualisations and dashboards for your
project

More Related Content

What's hot

Data science
Data scienceData science
Data science
Sreejith c
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
ANOOP V S
 
Data science
Data science Data science
Data science
SouravSadhukhan6
 
Introduction to Data Science - Week 4 - Tools and Technologies in Data Science
Introduction to Data Science - Week 4 - Tools and Technologies in Data ScienceIntroduction to Data Science - Week 4 - Tools and Technologies in Data Science
Introduction to Data Science - Week 4 - Tools and Technologies in Data Science
Ferdin Joe John Joseph PhD
 
Introduction to Data Science by Datalent Team @Data Science Clinic #9
Introduction to Data Science by Datalent Team @Data Science Clinic #9Introduction to Data Science by Datalent Team @Data Science Clinic #9
Introduction to Data Science by Datalent Team @Data Science Clinic #9
Dr.Sotarat Thammaboosadee CIMP-Data Governance
 
Data Science using Python
Data Science using PythonData Science using Python
Data Science using Python
ShapeMySkills Pvt Ltd
 
Data Science: Not Just For Big Data
Data Science: Not Just For Big DataData Science: Not Just For Big Data
Data Science: Not Just For Big Data
Revolution Analytics
 
Big data and data science overview
Big data and data science overviewBig data and data science overview
Big data and data science overview
Colleen Farrelly
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Anastasiia Kornilova
 
Data science
Data scienceData science
Data science
9diov
 
Data Science
Data ScienceData Science
Data Science
Prithwis Mukerjee
 
Lecture #01
Lecture #01Lecture #01
Lecture #01
Konpal Darakshan
 
Creating a Data Science Ecosystem for Scientific, Societal and Educational Im...
Creating a Data Science Ecosystem for Scientific, Societal and Educational Im...Creating a Data Science Ecosystem for Scientific, Societal and Educational Im...
Creating a Data Science Ecosystem for Scientific, Societal and Educational Im...
Ilkay Altintas, Ph.D.
 
Data science presentation 2nd CI day
Data science presentation 2nd CI dayData science presentation 2nd CI day
Data science presentation 2nd CI day
Mohammed Barakat
 
Data science
Data scienceData science
Data science
Mohamed Loey
 
Data science applications and usecases
Data science applications and usecasesData science applications and usecases
Data science applications and usecases
Sreenatha Reddy K R
 
Data science | What is Data science
Data science | What is Data scienceData science | What is Data science
Data science | What is Data science
ShilpaKrishna6
 
GTU GeekDay Data Science and Applications
GTU GeekDay Data Science and ApplicationsGTU GeekDay Data Science and Applications
GTU GeekDay Data Science and Applications
Kürşat İNCE
 
Data science 101
Data science 101Data science 101
Data science 101
University of West Florida
 
data science
data sciencedata science
data science
skhraletta
 

What's hot (20)

Data science
Data scienceData science
Data science
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Data science
Data science Data science
Data science
 
Introduction to Data Science - Week 4 - Tools and Technologies in Data Science
Introduction to Data Science - Week 4 - Tools and Technologies in Data ScienceIntroduction to Data Science - Week 4 - Tools and Technologies in Data Science
Introduction to Data Science - Week 4 - Tools and Technologies in Data Science
 
Introduction to Data Science by Datalent Team @Data Science Clinic #9
Introduction to Data Science by Datalent Team @Data Science Clinic #9Introduction to Data Science by Datalent Team @Data Science Clinic #9
Introduction to Data Science by Datalent Team @Data Science Clinic #9
 
Data Science using Python
Data Science using PythonData Science using Python
Data Science using Python
 
Data Science: Not Just For Big Data
Data Science: Not Just For Big DataData Science: Not Just For Big Data
Data Science: Not Just For Big Data
 
Big data and data science overview
Big data and data science overviewBig data and data science overview
Big data and data science overview
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Data science
Data scienceData science
Data science
 
Data Science
Data ScienceData Science
Data Science
 
Lecture #01
Lecture #01Lecture #01
Lecture #01
 
Creating a Data Science Ecosystem for Scientific, Societal and Educational Im...
Creating a Data Science Ecosystem for Scientific, Societal and Educational Im...Creating a Data Science Ecosystem for Scientific, Societal and Educational Im...
Creating a Data Science Ecosystem for Scientific, Societal and Educational Im...
 
Data science presentation 2nd CI day
Data science presentation 2nd CI dayData science presentation 2nd CI day
Data science presentation 2nd CI day
 
Data science
Data scienceData science
Data science
 
Data science applications and usecases
Data science applications and usecasesData science applications and usecases
Data science applications and usecases
 
Data science | What is Data science
Data science | What is Data scienceData science | What is Data science
Data science | What is Data science
 
GTU GeekDay Data Science and Applications
GTU GeekDay Data Science and ApplicationsGTU GeekDay Data Science and Applications
GTU GeekDay Data Science and Applications
 
Data science 101
Data science 101Data science 101
Data science 101
 
data science
data sciencedata science
data science
 

Viewers also liked

Electronic communication and knowledge systems
Electronic communication and knowledge systemsElectronic communication and knowledge systems
Electronic communication and knowledge systems
Jarmo Saarikko
 
Communicating for results
Communicating for resultsCommunicating for results
Communicating for results
Jim Saylor
 
Communicating results to stakeholders
Communicating results to stakeholdersCommunicating results to stakeholders
Communicating results to stakeholders
Marie Gervais, PhD., CTDP
 
Communicating For Results
Communicating For ResultsCommunicating For Results
Communicating For Results
Khalid Nasr
 
Puerto Dibulla
Puerto DibullaPuerto Dibulla
Dealing with difficult people brooke
Dealing with difficult people brookeDealing with difficult people brooke
Dealing with difficult people brookeAllison Johnson
 
dealing with difficult people
dealing with difficult peopledealing with difficult people
dealing with difficult peopleAllan Folsom
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and Design
Aamir Abbas
 

Viewers also liked (8)

Electronic communication and knowledge systems
Electronic communication and knowledge systemsElectronic communication and knowledge systems
Electronic communication and knowledge systems
 
Communicating for results
Communicating for resultsCommunicating for results
Communicating for results
 
Communicating results to stakeholders
Communicating results to stakeholdersCommunicating results to stakeholders
Communicating results to stakeholders
 
Communicating For Results
Communicating For ResultsCommunicating For Results
Communicating For Results
 
Puerto Dibulla
Puerto DibullaPuerto Dibulla
Puerto Dibulla
 
Dealing with difficult people brooke
Dealing with difficult people brookeDealing with difficult people brooke
Dealing with difficult people brooke
 
dealing with difficult people
dealing with difficult peopledealing with difficult people
dealing with difficult people
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and Design
 

Similar to Session 04 communicating results

Datascape Introduction
Datascape IntroductionDatascape Introduction
Datascape Introduction
Daden Limited
 
datavisualization-5thUnit.pdf
datavisualization-5thUnit.pdfdatavisualization-5thUnit.pdf
datavisualization-5thUnit.pdf
BrijeshPatil13
 
Data visualization using py plot part i
Data visualization using py plot part iData visualization using py plot part i
Data visualization using py plot part i
TutorialAICSIP
 
LECTURE 6 DESIGN, DEBasd, INTERFACES.pdf
LECTURE 6 DESIGN, DEBasd, INTERFACES.pdfLECTURE 6 DESIGN, DEBasd, INTERFACES.pdf
LECTURE 6 DESIGN, DEBasd, INTERFACES.pdf
ShashikantSathe3
 
LECTURE 6 DESIGN, DEBUGGING, INTERFACES.pdf
LECTURE 6 DESIGN, DEBUGGING, INTERFACES.pdfLECTURE 6 DESIGN, DEBUGGING, INTERFACES.pdf
LECTURE 6 DESIGN, DEBUGGING, INTERFACES.pdf
SHASHIKANT346021
 
Mathcad
MathcadMathcad
Mathcad
gaadi221
 
Design handoffs with design systems in mind
Design handoffs with design systems in mindDesign handoffs with design systems in mind
Design handoffs with design systems in mind
Roland Lösslein
 
Introduction to Network Analysis in Gephi
Introduction to Network Analysis in GephiIntroduction to Network Analysis in Gephi
Introduction to Network Analysis in Gephi
Victor Blaer
 
12-IP.pdf
12-IP.pdf12-IP.pdf
12-IP.pdf
kajalkhorwal106
 
UNIT_4_data visualization.pptx
UNIT_4_data visualization.pptxUNIT_4_data visualization.pptx
UNIT_4_data visualization.pptx
BhagyasriPatel2
 
Graphs made easy with SAS ODS Graphics Designer (PAPER)
Graphs made easy with SAS ODS Graphics Designer (PAPER)Graphs made easy with SAS ODS Graphics Designer (PAPER)
Graphs made easy with SAS ODS Graphics Designer (PAPER)
Kevin Lee
 
Data visualization training session HELCOM
Data visualization training session HELCOMData visualization training session HELCOM
Data visualization training session HELCOM
Manuel Frias
 
Apache Spark GraphX highlights.
Apache Spark GraphX highlights. Apache Spark GraphX highlights.
Apache Spark GraphX highlights.
Doug Needham
 
Technology in maths and maths in technology
Technology  in maths and maths in technologyTechnology  in maths and maths in technology
Technology in maths and maths in technology
shajunisha
 
Basics of R
Basics of RBasics of R
Basics of R
Sachita Yadav
 
Data visualization tools & techniques - 1
Data visualization tools & techniques - 1Data visualization tools & techniques - 1
Data visualization tools & techniques - 1
Korivi Sravan Kumar
 
Remix Your Data: Visualizing Library Instruction Statistics
Remix Your Data: Visualizing Library Instruction StatisticsRemix Your Data: Visualizing Library Instruction Statistics
Remix Your Data: Visualizing Library Instruction Statistics
Brianna Marshall
 
How to Create Mind Maps with SmartDraw
How to Create Mind Maps with SmartDrawHow to Create Mind Maps with SmartDraw
How to Create Mind Maps with SmartDraw
SmartDraw Software
 

Similar to Session 04 communicating results (20)

Datascape Introduction
Datascape IntroductionDatascape Introduction
Datascape Introduction
 
datavisualization-5thUnit.pdf
datavisualization-5thUnit.pdfdatavisualization-5thUnit.pdf
datavisualization-5thUnit.pdf
 
Data visualization using py plot part i
Data visualization using py plot part iData visualization using py plot part i
Data visualization using py plot part i
 
LECTURE 6 DESIGN, DEBasd, INTERFACES.pdf
LECTURE 6 DESIGN, DEBasd, INTERFACES.pdfLECTURE 6 DESIGN, DEBasd, INTERFACES.pdf
LECTURE 6 DESIGN, DEBasd, INTERFACES.pdf
 
LECTURE 6 DESIGN, DEBUGGING, INTERFACES.pdf
LECTURE 6 DESIGN, DEBUGGING, INTERFACES.pdfLECTURE 6 DESIGN, DEBUGGING, INTERFACES.pdf
LECTURE 6 DESIGN, DEBUGGING, INTERFACES.pdf
 
Mathcad
MathcadMathcad
Mathcad
 
Design handoffs with design systems in mind
Design handoffs with design systems in mindDesign handoffs with design systems in mind
Design handoffs with design systems in mind
 
Introduction to Network Analysis in Gephi
Introduction to Network Analysis in GephiIntroduction to Network Analysis in Gephi
Introduction to Network Analysis in Gephi
 
Introduction to r
Introduction to rIntroduction to r
Introduction to r
 
12-IP.pdf
12-IP.pdf12-IP.pdf
12-IP.pdf
 
UNIT_4_data visualization.pptx
UNIT_4_data visualization.pptxUNIT_4_data visualization.pptx
UNIT_4_data visualization.pptx
 
manual.docx
manual.docxmanual.docx
manual.docx
 
Graphs made easy with SAS ODS Graphics Designer (PAPER)
Graphs made easy with SAS ODS Graphics Designer (PAPER)Graphs made easy with SAS ODS Graphics Designer (PAPER)
Graphs made easy with SAS ODS Graphics Designer (PAPER)
 
Data visualization training session HELCOM
Data visualization training session HELCOMData visualization training session HELCOM
Data visualization training session HELCOM
 
Apache Spark GraphX highlights.
Apache Spark GraphX highlights. Apache Spark GraphX highlights.
Apache Spark GraphX highlights.
 
Technology in maths and maths in technology
Technology  in maths and maths in technologyTechnology  in maths and maths in technology
Technology in maths and maths in technology
 
Basics of R
Basics of RBasics of R
Basics of R
 
Data visualization tools & techniques - 1
Data visualization tools & techniques - 1Data visualization tools & techniques - 1
Data visualization tools & techniques - 1
 
Remix Your Data: Visualizing Library Instruction Statistics
Remix Your Data: Visualizing Library Instruction StatisticsRemix Your Data: Visualizing Library Instruction Statistics
Remix Your Data: Visualizing Library Instruction Statistics
 
How to Create Mind Maps with SmartDraw
How to Create Mind Maps with SmartDrawHow to Create Mind Maps with SmartDraw
How to Create Mind Maps with SmartDraw
 

More from bodaceacat

CansecWest2019: Infosec Frameworks for Misinformation
CansecWest2019: Infosec Frameworks for MisinformationCansecWest2019: Infosec Frameworks for Misinformation
CansecWest2019: Infosec Frameworks for Misinformation
bodaceacat
 
2019 11 terp_breuer_disclosure_master
2019 11 terp_breuer_disclosure_master2019 11 terp_breuer_disclosure_master
2019 11 terp_breuer_disclosure_master
bodaceacat
 
Terp breuer misinfosecframeworks_cansecwest2019
Terp breuer misinfosecframeworks_cansecwest2019Terp breuer misinfosecframeworks_cansecwest2019
Terp breuer misinfosecframeworks_cansecwest2019
bodaceacat
 
Misinfosec frameworks Cansecwest 2019
Misinfosec frameworks Cansecwest 2019Misinfosec frameworks Cansecwest 2019
Misinfosec frameworks Cansecwest 2019
bodaceacat
 
Sjterp ds_of_misinfo_feb_2019
Sjterp ds_of_misinfo_feb_2019Sjterp ds_of_misinfo_feb_2019
Sjterp ds_of_misinfo_feb_2019
bodaceacat
 
Practical Influence Operations, presentation at Sofwerx Dec 2018
Practical Influence Operations, presentation at Sofwerx Dec 2018Practical Influence Operations, presentation at Sofwerx Dec 2018
Practical Influence Operations, presentation at Sofwerx Dec 2018
bodaceacat
 
Session 09 learning relationships.pptx
Session 09 learning relationships.pptxSession 09 learning relationships.pptx
Session 09 learning relationships.pptx
bodaceacat
 
Session 08 geospatial data
Session 08 geospatial dataSession 08 geospatial data
Session 08 geospatial data
bodaceacat
 
Session 07 text data.pptx
Session 07 text data.pptxSession 07 text data.pptx
Session 07 text data.pptx
bodaceacat
 
Session 06 machine learning.pptx
Session 06 machine learning.pptxSession 06 machine learning.pptx
Session 06 machine learning.pptx
bodaceacat
 
Session 05 cleaning and exploring
Session 05 cleaning and exploringSession 05 cleaning and exploring
Session 05 cleaning and exploring
bodaceacat
 
Session 03 acquiring data
Session 03 acquiring dataSession 03 acquiring data
Session 03 acquiring data
bodaceacat
 
Session 02 python basics
Session 02 python basicsSession 02 python basics
Session 02 python basics
bodaceacat
 
Gp technologybuilds july2011
Gp technologybuilds july2011Gp technologybuilds july2011
Gp technologybuilds july2011
bodaceacat
 
Gp technologybuilds july2011
Gp technologybuilds july2011Gp technologybuilds july2011
Gp technologybuilds july2011
bodaceacat
 
Ardrone represent
Ardrone representArdrone represent
Ardrone representbodaceacat
 
Global pulse app connection manager
Global pulse app connection managerGlobal pulse app connection manager
Global pulse app connection managerbodaceacat
 
Un Pulse Camp - Humanitarian Innovation
Un Pulse Camp - Humanitarian InnovationUn Pulse Camp - Humanitarian Innovation
Un Pulse Camp - Humanitarian Innovation
bodaceacat
 
Blue light services
Blue light servicesBlue light services
Blue light services
bodaceacat
 
Rhok and opendata hackathon intro
Rhok and opendata hackathon introRhok and opendata hackathon intro
Rhok and opendata hackathon intro
bodaceacat
 

More from bodaceacat (20)

CansecWest2019: Infosec Frameworks for Misinformation
CansecWest2019: Infosec Frameworks for MisinformationCansecWest2019: Infosec Frameworks for Misinformation
CansecWest2019: Infosec Frameworks for Misinformation
 
2019 11 terp_breuer_disclosure_master
2019 11 terp_breuer_disclosure_master2019 11 terp_breuer_disclosure_master
2019 11 terp_breuer_disclosure_master
 
Terp breuer misinfosecframeworks_cansecwest2019
Terp breuer misinfosecframeworks_cansecwest2019Terp breuer misinfosecframeworks_cansecwest2019
Terp breuer misinfosecframeworks_cansecwest2019
 
Misinfosec frameworks Cansecwest 2019
Misinfosec frameworks Cansecwest 2019Misinfosec frameworks Cansecwest 2019
Misinfosec frameworks Cansecwest 2019
 
Sjterp ds_of_misinfo_feb_2019
Sjterp ds_of_misinfo_feb_2019Sjterp ds_of_misinfo_feb_2019
Sjterp ds_of_misinfo_feb_2019
 
Practical Influence Operations, presentation at Sofwerx Dec 2018
Practical Influence Operations, presentation at Sofwerx Dec 2018Practical Influence Operations, presentation at Sofwerx Dec 2018
Practical Influence Operations, presentation at Sofwerx Dec 2018
 
Session 09 learning relationships.pptx
Session 09 learning relationships.pptxSession 09 learning relationships.pptx
Session 09 learning relationships.pptx
 
Session 08 geospatial data
Session 08 geospatial dataSession 08 geospatial data
Session 08 geospatial data
 
Session 07 text data.pptx
Session 07 text data.pptxSession 07 text data.pptx
Session 07 text data.pptx
 
Session 06 machine learning.pptx
Session 06 machine learning.pptxSession 06 machine learning.pptx
Session 06 machine learning.pptx
 
Session 05 cleaning and exploring
Session 05 cleaning and exploringSession 05 cleaning and exploring
Session 05 cleaning and exploring
 
Session 03 acquiring data
Session 03 acquiring dataSession 03 acquiring data
Session 03 acquiring data
 
Session 02 python basics
Session 02 python basicsSession 02 python basics
Session 02 python basics
 
Gp technologybuilds july2011
Gp technologybuilds july2011Gp technologybuilds july2011
Gp technologybuilds july2011
 
Gp technologybuilds july2011
Gp technologybuilds july2011Gp technologybuilds july2011
Gp technologybuilds july2011
 
Ardrone represent
Ardrone representArdrone represent
Ardrone represent
 
Global pulse app connection manager
Global pulse app connection managerGlobal pulse app connection manager
Global pulse app connection manager
 
Un Pulse Camp - Humanitarian Innovation
Un Pulse Camp - Humanitarian InnovationUn Pulse Camp - Humanitarian Innovation
Un Pulse Camp - Humanitarian Innovation
 
Blue light services
Blue light servicesBlue light services
Blue light services
 
Rhok and opendata hackathon intro
Rhok and opendata hackathon introRhok and opendata hackathon intro
Rhok and opendata hackathon intro
 

Recently uploaded

一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
nscud
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
pchutichetpong
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
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
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
vcaxypu
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
ewymefz
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
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
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Linda486226
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
benishzehra469
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
ocavb
 
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
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 

Recently uploaded (20)

一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
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...
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
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 ...
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
 
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
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 

Session 04 communicating results

  • 2. Lab 4: your 5-7 things Communicating with data Really common visualisations Quite common visualisations Visualisation tools: Matplotlib and Tableau Doing more: D3 and beyond
  • 4. Engage your audience Who are these people? Demographics: which languages? What red flags? What communications styles are they used to? What channels are you using? Website, printed media, SMS? What have you got for them? Insights? answers? surprises? Exploring or explaining? Do you want to engage, persuade, inform or entertain?
  • 5. Design rules Storytelling: Design for your medium (e.g paper) Learn from the storytellers: have a beginning, middle and end Use drill-down: summarise with visuals, but allow users to reach the data Frame your message - why are you doing this, how did you get here Visualisations: Have graphical integrity (e.g. start bars at zero)
  • 16. Choosing a Visualisation Tool What do you want to do? Standard visualisations, or something special? Inputs: files (e.g. CSV) or streaming data? Maps? Non-roman languages (Arabic, Mandarin etc)? Interactive or static? Where do you want to do it? Online or offline? Any other restrictions?
  • 17. Excel Limited set of visualisation types Not interactive Offline Static Not free Relatively easy Widely used
  • 18. Matplotlib Python visualisation library Not interactive Not the prettiest (but does have ways to make it prettier, e.g. Seaborn) Good for quick-and-dirty views of data Offline + Online Free
  • 19. Tableau Tableau Public Free Interactive Excel or text (CSV) import only Public, and needs internet connection Tableau Desktop Not free (but free to students who ask) Interactive
  • 20. D3 Free Interactive Very very flexible = almost any diagram you want Steep learning curve Works offline
  • 21. Other Common Tools Piktochart Google fusion tables Ggplot Highcharts NVD3
  • 23. Exercise: draw a line chart in Matplotlib %matplotlib inline import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 10, 100) y = np.sin(x) plt.plot(x, y)
  • 25. Exercise: draw a scatterplot import matplotlib.pyplot as plt import numpy as np x = np.array([1,4,3,2,6,4,7,8]) y = np.array([3,5,4,3,7,6,4,9]) plt.scatter(x, y)
  • 26. Add labels fig, ax = plt.subplots() plt.scatter(x, y) ax.set_ylabel('This is the Y axis') ax.set_xlabel('This is the X axis') ax.set_title('This is the Title')
  • 27. Exercise: Draw a stacked column chart in Tableau
  • 28. Do this: Import data into Tableau Get a copy of example file “cleaned_popstats.csv” Open Tableau Public (click on the executable) Click on “Text File” Select “cleaned_popstats.csv”, then “open” Congratulations - you’ve got data into Tableau Now click on “sheet 1” at the bottom of the page
  • 29. Do this: add rows From sheet1: ● You should see a “show me” box on the top RHS: click on it, then the thing that looks like a column chart (sigh: Tableau calls it “stacked bar”) ● Drag “asylum seekers” from under “Measures” to the “rows” box
  • 30. Do this: add columns ● Drag “origin/ returned from” from under “dimensions” to the “columns” box ● Right-click on “origin/returned from” in the “columns” box. ● Click “sort…” ● Click “descending” ● Click “field” ● Click “okay”
  • 31. Do this: remove a column from the graph Right-click on “various” in the graph. Click “Exclude” Watch the graph scale to the new biggest value (Democratic Republic of the Congo)
  • 32. Do this: add colours ● Drag “Year” to color (under “Marks”) The green is okay, but not easy to read: ● Click the little triangle that appears when you hover over the new “Year” colours box ● Click “Edit colors” ● Click “stepped color” ● Click the bar under “Palette”; click “Red Blue Diverging” then “okay”
  • 33. A stacked column chart in Tableau
  • 35. Drawing a Chord Diagram in D3: Online Use the terminal window cd to the directory containing file 4.3_d3_chord_online.html In the terminal window, type: python -m http.server 8899 & Then go to http://0.0.0.0:8899/4.3_d3_chord_online.html in your browser And hover your mouse over the circle edges... (to exit, type control-c)
  • 36. Drawing a Chord Diagram in D3: Offline Copy your d3.js.zip file and the 4.4_d3_chord_offline.html file into a directory Unzip d3.js.zip In the directory your code is in, type: python -m http.server 8899 & Then go to http://0.0.0.0:8899/4.4_d3_chord_offline.html in your browser And hover your mouse over the circle edges... (to exit, type control-c)
  • 39. Communication doesn’t have to be “standard”
  • 41. Exercise: Design your visuals Use pen and paper (or post-its) to design visualisations and dashboards for your project

Editor's Notes

  1. Red flags: things you really need to be careful of. For example: using orange and green for an Irish audience.
  2. See http://extremepresentation.typepad.com/blog/files/choosing_a_good_chart.pdf for advice on choosing the right chart type.. Sometimes it’s appropriate to throw data and graphs at the user, and let them work it out on their own, but usually drill-down and a story is the answer. See Alberto Cairo’s work for more details.
  3. All these examples are in Tableau Gallery here: https://public.tableau.com/profile/sara.terp#!/vizhome/DS_session_example/exampledashboard and in Tableau Desktop here: https://github.com/bodacea/inafu6513/blob/master/Notebooks/4.2 Tableau_example.twb
  4. You can put visualisations and text together in a dashboard. You can also link these visualisations, so that when you click on a point in one visualisation, data relevant to that point is shown in another.
  5. This is india’s government employee attendance dashboard. If you look at the bottom of Tableau, there’s a dashboard button.
  6. Other visualisation types you’ll see a lot include Chord diagram, Sankey diagram, Choropleth, symbol map
  7. http://www.visual-literacy.org/periodic_table/periodic_table.html
  8. To create this chart: copied the asylum seeker data into an excel spreadsheet. Created a pivot table from the data. Created a chart from the pivot table. Did lots of fussing around to get chart elements in the right place/ filtered. Still more fussing needed to get e.g. the legend right.
  9. The image is one of the Piktochart templates. Infographics aren’t immediate outputs from python code, but can be very powerful.
  10. NB: You only need the %matplotlib inline in an ipython notebook.
  11. plt.subplots creates a plot on your drawing ‘canvas’. It’s what we usually use to create a group of plots. Here, we’re using it to get at the axes (ax) for this visualisation.
  12. Data file is here is you get stuck: https://github.com/bodacea/inafu6513/blob/master/example_data/cleaned_popstats.csv
  13. Don’t panic when “asylum seekers” becomes “SUM(Asylum seekers)” in the Rows box. This is normal.
  14. At this point, you’re probably wondering why the columns are so small
  15. Okay, “Various” is huge, and not helping the graph much. Let’s remove it.
  16. The green is okay, but not easy to read.
  17. Also available at https://public.tableau.com/profile/publish/DS_session_example/Sheet1#!/publish-confirm
  18. This starts a webserver on your PC, that you can then go to and look at your D3 file in. NB I changed the channel to 8899 because the standard (8888) clashes with the ipython notebook server. Chord example is from http://bl.ocks.org/mbostock/4062006 CORRECTION: the space in the filename was making your code crash. Try again!
  19. The difference between the two files is in where the D3 code comes from. In the online version, the D3 code is at //d3js.org/d3.v3.min.js (the d3.v3.min.js file is a version of d3.js with all the whitespace and comments taken out to make it smaller); In the offline version, the D3 code is on your pc, in file d3.js the d3 directory. Bugz: you might get an error message saying “Address already in use”. This is bad and naughty, but to quickly fix it, try: in the terminal window, type “ps -a” Note the number at the left of the line that looks like “7064 ttys000 0:00.16 python -m http.server 8899” type “kill -9 7064” (or whatever your number was). Note: this is a very powerful command: make sure you’re using the right number, or you might accidentally shut down your machine…
  20. Image: Hans Rosling video.