SlideShare una empresa de Scribd logo
1 de 41
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

Más contenido relacionado

La actualidad más candente

La actualidad más candente (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
 

Destacado (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 a Session 04 communicating results

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
 
Apache Spark GraphX highlights.
Apache Spark GraphX highlights. Apache Spark GraphX highlights.
Apache Spark GraphX highlights.
Doug Needham
 

Similar a 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
 

Más de bodaceacat

Ardrone represent
Ardrone representArdrone represent
Ardrone represent
bodaceacat
 
Global pulse app connection manager
Global pulse app connection managerGlobal pulse app connection manager
Global pulse app connection manager
bodaceacat
 

Más de 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
 

Último

Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
amitlee9823
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
amitlee9823
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
only4webmaster01
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
amitlee9823
 

Último (20)

Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 

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

Notas del editor

  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.