# A tibble: 6 × 3
sex age count
<chr> <chr> <dbl>
1 m 15-24 4893
2 m 25-34 8149
3 m 35-44 5302
4 m 45-54 2493
5 m 55-64 1099
6 m 65+ 669
SISBID 2025
https://github.com/dicook/SISBID
Coming up: 2 different plots of 2012 TB incidence (e.g. newly diagnosed cases) in Kenya, based on variables:
At which age(s) are the counts for males and females relatively the same?
Which plot makes this question easier to answer?
At which age(s) are the counts relatively similar across sex?
Which plot makes this easier? What do we learn from each? What’s the focus? What’s easy? What’s harder?
Write out a question that would be easier to answer from arrangement B.
Go to www.menti.com and use the code 2979 2396.
Next, we have two different plots of TB incidence in Kenya, based on three variables:
# A tibble: 10 × 4
year sex age count
<dbl> <chr> <chr> <dbl>
1 1995 m 15-24 2072
2 1995 m 25-34 3073
3 1995 m 35-44 1675
4 1995 m 45-54 920
5 1995 m 55-64 485
6 1995 m 65+ 296
7 1995 f 15-24 1802
8 1995 f 25-34 1759
9 1995 f 35-44 741
10 1995 f 45-54 411
Is the trend for females generally decreasing over time? Which plot makes this easier?
Which type of plot makes it easier to answer
Is the trend for females generally decreasing over time?
01:50
What are the pros and cons of each way of displaying the same information? Should specific limits on axes be made?
Should the limits of the y axis in plot A include 0 (zero)?
00:30
Plot A shows the proportion as a line plot.
Plot B shows stacked bars scaled to 100% for females and males.
Is there an age effect in the proportion of incidence by gender? Is there a temporal trend in the proportions?
01:05
Come up with a plot type for each of the mappings.
(Cleveland, 1984; Heer and Bostock, 2009)
01:40
Color Brewer annotates palettes with attributes.
Default brewer sequential scale, blues.
Focus is on the dark blue.
Map qualitative variables to most differentiated set of colors.
It’s possible to have too many colours to perceive differences.
Of the previous four colour schemes on the same data, which would be the most appropriate? Why?
viridis
ColorBrewer
sequential Blues
ColorBrewer
Diverging PRGn
ColorBrewer
Categorical Set1
00:50
colorblind
has color blind friendly palettes (Susan: but the colours are awful 😭).Can you find the odd one out?
Is it easier now?
Place elements that you want to compare close to each other. If there are multiple comparisons to make, you need to decide which one is most important.
Which has the steeper slope, VS1 or VS2?
This builds on the exercise from the previous session.
07:00
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.