24/03/2021
1
Howtomakenicefigures
andtablesinscientific
publications
ThorkildTylleskär
CentreforInternationalHealth,
UniversityofBergen(UiB)
0
10
20
30
40
50
60
70
80
Kjønn Bolig-
standard
Trang-
boddhet
Deler
latrine
Gutt
Jente
semi-permanent
permanent
7
2-4
nei
ja
Sex Sharing
latrine
Numberof
household
members
Housing
standard
Boys
Girls
No
Yes
1
2
24/03/2021
2
Overview
Fourparts:
1. Basicsabouttablesandfiguresinscientificpapers
2. Choosingtopresentdataasatableorasafigure
3. Tables
4. Figures
Scientificpapers
Inscientificpapersdat aarepresented,either:
1. inthetextor
2. inatableor
3. inafigure
Donotduplicatethedata:intable+intextorintable+infigure
3
4
24/03/2021
3
Whatisafigureinscientifictext?
Anythingthatisnotatableortext
Itincludesphotographs,pictures,illustrations,drawings,diagrams,
anything
Itisnumbered:
Figure1.OverviewofXYZ
Figure2.Nextillustration
Thereisalwaysananchorinthetext,figure2.
Classicalwaytoorga niseamanuscript
Manuscriptsarecommonlyinparts:
Onefilewithtitlepage(title,authorsandaffiliations),abstract,maintextand
references
Onefilewithtables
Onefileforeachfigure
Agood way toavoid headaches
5
6
24/03/2021
4
Hinttomakeitneat(forinstanceinyourthesis)
2typesoffonts:
1. With‘serifs(=feet)
2. Without‘serifs’,sansserifs
Classicrule1:
1. Seriffontformaintext
2. Sansseriffontforfiguresandtables
Classicrule2:Maximum:
2differentfontsand
2differentsizesand
2differenttypes(regular+italic)or(regular+bold)
Withserifs Sansserifs
Times New Roman
Arial
Bodoni MT
Calibri
Palatino Linotype
Ta h o m a
DejaVu Serif DejaVu Sans
Figureortable?
Usefiguresfor:
simplemessages,trends,relationships
Usetablesarefor
complexdata,exactnumbers,datawithawiderange
7
8
24/03/2021
5
TableheadingsalwaysABOVEthetable
FigurelegendsalwaysBELOWthefigure
Number
N=345
Percent
Educationstatus
Noteducated 181 52.46
Primary 109 31.59
Secondary 36 10.43
Tertiary 18 5.22
Maritalstatus
Single 5 1.45
Married 329 95.36
Separated 10 2.90
Widowed 1 0.29
Employmentstatus
Unemployed 221 64.06
Selfemployed 94 27.25
Employed 30 8.70
Table1.Baselinecharacteristics.
60
50
40
30
20
10
0<1 1<3 3<6 6<9 9<12
Agegroups(years)
Prevalence(%)
Figure2.Prevalence 95%CI)ofH.Pyloribyage
groupinKampala,Uganda.
Tables
9
10
24/03/2021
6
Number
N=345
Percent
Educationstatus
Noteducated 181 52.46
Primary 109 31.59
Secondary 36 10.43
Terti a ry 18 5.22
Maritalstatus
Single 5 1.45
Married 329 95.36
Separated 10 2.90
Widowed 1 0.29
Employmentstatus
Unemployed 221 64.06
Selfemployed 94 27.25
Employed 30 8.70
Number
N=345
n(%)
Education
Noformaleducation 181(52.5)
Primary 109(31.6)
Secondaryorhigher 54(15.6)
Maritalstatus
Married 329(95.4)
Single,separated,widowed 16(4.6)
Employmentstatus
Unemployed 221(64.0)
Selfemployed 94(27.2)
Employed 30(8.7)
Table1.Baselinecharacteristics. Table1.Baselinecharacteristics.
Aclassical table (forprinting)hasonly 3horisontallines: Keep itsimple,give OVERVIEW
Number
N=345
n(%)
Age(year s),mean(SD) 29.09(5.63)
Parity,mean(SD) 3.28(1.75)
Gestationage(weeks),median(IQR) 28(22‐ 32)
Distancefromhospital(Km),median(IQR) 4(3‐ 5)
Timetohospital(mins),mean(SD) 32.87(15.28)
Durationontreatment(months),median(IQR) 36(12‐ 60)
Education
Noformaleducation 181(52.5)
Primary 109(31.6)
Secondary
orhigher 54(15.6)
Maritalstatus
Married 329(95.4)
Single,separated,widowed 16(4.6)
Employmentstatus
Unemployed 221(64.0)
Selfemployed 94(27.2)
Employed 30(8.7)
Table1.Baselinecharacteristics.
Try toavoid mixing
differenttypesofdatain
the sametable.
Atleast donotput an
incorrect headingon the
column.
11
12
24/03/2021
7
Unintendedpregnancy
N=345
Bivariablelogistic
regression
Multivariablelogistic
regression
n UnadjustedOR(95%CI) AdjustedOR(95%CI)
Age(years)
<19 20 1 1
2024 54 0.87(0.272.80) 0.64(0.172.38)
2529 104 0.86(0.292.59) 0.76(0.222.64)
3034 99 0.47(0.161.4) 0.40(0.111.44)
>35 68 0.31(0.100.96) 0.33(0.091.26)
EducationStatus
Noteducated 182 1 1
Primary 109 1.41(0.862.31) 1.14(0.671.98)
Secondary 36 1.88(0.864.13) 1.69(0.704.10)
Tertiary 18 5.79(1.2925.93) 4.3(0.8920.87)
Maritalstatus
single 16 1 1
marriedorcohabiting 329 4.15(1.4112.23) 4.44(1.3015.14)
Parity
0to4children 262 1 1
5to9children 83 0.32(0.200.54) 0.37(0.200.68)
Donotuse small groups as
reference groupinlogistic
regression
Besttool fortables
Excel
13
14
24/03/2021
8
Figures
Typesofgraphics
Photographs
Consistsofpixels
Whenyousearchoninternetyoucansee,forinstance2500x2282
Diagramsareoftwotypes
Pixelbased,alsocalledbitmap(notscalable),likephotographs
Vectorbased(scalable)
15
16
24/03/2021
9
Pixelbased filetypes(Raster)
.tif
commonforphotographs/graphics(canbehighresolution)
.jpg
commonforphotographs/graphics
.gif
GraphicsInterchangeFormat,commonforgraphics(lowresolution)
.png
PortableNetworkGraphics,commonforgraphics
Vectorbased filetypes
.eps
Encapsulatedpos tscript,commonforgraphics
.svg
ScalableVectorGraphics(SVG)/graphics
.ai
AdobeIllustrator
17
18
24/03/2021
10
Resolution
Resolutionisdefinedin
Dotsperinch(dpi)
Screenresolutionis72dpi
Minimumresolutionforprintingis300dpi
Highresolutionprintingis1200dpi
Ifyou use photographs
Donottorturethem!
19
20
24/03/2021
11
21
22
24/03/2021
12
23
24
24/03/2021
13
EdwardR.Tufte
JeffreyNicols PowerPoint:
http://www.cs.cmu.edu/~jeffreyn/talk
s/tuftelecture.ppt
Tuftehimself:
https://www.youtube.com/watch?v=T
h_1azZA2OY
Anexplanation:
https://www.youtube.com/watch?v=q
QGcK20pJk0
Displaying
QuantitativeInformation
AnexplorationofEdwardR.Tufte’s
TheVisualDisplayofQuantitativeInformation
Jeffrey Nichols
Programming Usable Interfaces
May 2, 2003
25
26
24/03/2021
14
Howcanwemakebettergraphics?
Tuftepresentssomeprinciplesofdatagraphics
Aboveallelse,showthedata
Maximizethedatainkratio
Withinreason
Everybitofinkonagraphicrequiresareason
Erasenondataink
Eraseredundantdataink
Reviseandedit
Histogram of Midterm Results
0
2
4
6
8
10
12
14
16
18
20
D/F C B- B B+ A- A A+
Scoring Buckets
# of Students
Histogram of Midterm Results
0
2
4
6
8
10
12
14
16
18
20
D/F C B- B B+ A- A A+
Scoring Buckets
# of Students
27
28
24/03/2021
15
Example1
Example1
Adjusted
Allvisits (n=202,610)
NoEDvisits/admissions
(n=125,218)
Asylumseekingvisits
(n=572)
Visitbefore1.1.15
(n=126)
Asylumseekingvisits
(n=446)
Multipleregistration
admissions(n=2067)
Emergencydepartment
visits(n= 63,108)
Admissions (n=11,645)
Ambulatorycaresensitive:
11%(n=1279/11645)
Admissions (n=149)
Ambulatorycaresensitive:
12%(n=18/149)
Emergencydepartment
visits(n= 297)
Nonasylumseekingvisits
(n=74,753)
29
30
24/03/2021
16
NEVERuse MicrosoftWord
forANYgraphics EVER!
Forflowchartsandsimilar:
UseMicrosoftPowerPoint
tomakethegraphics!
Learnsomeofthebasics
Copyasmuchaspossible
Ifyouhavemadeonebox,
justcopyandrecycleitforall
otherboxes
Moreprinciples:
1. Reducedata“Simplify,simplify,simplify
2. Usealogicalorder,forinstancegofrombigtosmall
3. Keepcomparisonsclose verticallyclose
4. Selfexplaininglegend:
What,Where,When,Units,Source
Avoidtheuseofabbreviations,reducethenumberoffootnotes
31
32
24/03/2021
17
Usecolouraccordingtotheaudience
Ifyourreaderwillreadaphotocopiedversionofthearticle:useB/W
Ifyouthinkyourreaderswillreadfromscreen:youmayusecolour
ConsiderTufte
0 10 20 30 40 50 60 70
percent
Skin infections (0.33)
Severe ENT & upper airway infection (0.01)
Neonatal jaundice (0.39)
Nutritional deficiency (0.00)
Kidney & urinary infections (0.19)
Iron-deficiency anemia (0.79)
Disease of female pelvic organs (0.9)
Immunisation preventable (0.9)
Gastroenteritis & dehydration (0.09)
Gastritis (0.76)
Failure to thrive (0.61)
Diabetes mellitus (0.97)
Dental conditions (0.57)
Convulsions (0.4)
Asthma (0.3)
Allergies & allergic reactions (0.06)
A
B
Department of Paediatrics and Child health,
Mulago National Referral Hospital, Kampala
246 HIV infected HAART naïve
children aged 0-<12 years
236 HIV infected HAART naïve
children aged 0-<12 years
10 children excluded:
• failed to provide stools (9)
• incomplete data (1)
219 HIV infected HAART naïve children
aged 0-<12 years with CD4 percent available
17 children:
• CD4 percent not available
193 HIV infected HAART naïve children
aged 0-<12 years with CD4 percent and FC
26 samples lost in transport
134 children
4 years
59 children
> 4 years
33
34
24/03/2021
18
NEVERaccepttheoutputfromanystatisticalsoftwareorMSExcelas
afinalgraph!
Theyalwaysbreachthedatainkrule
Needsalotoftidyingup
Payattentiontothelook!
Usethinlines,0.5pt
Avoidlargeemptyspaces
35