New Figure Schemes for Stata: blindschemes The Schemes plotplain - - PowerPoint PPT Presentation

new figure schemes for stata
SMART_READER_LITE
LIVE PREVIEW

New Figure Schemes for Stata: blindschemes The Schemes plotplain - - PowerPoint PPT Presentation

The Issue Solutions New Figure Schemes for Stata: blindschemes The Schemes plotplain & plottig Adaptation Conclusion Daniel Bischof 1 1 University of Zurich November 17, 2016 1/17 The Default Stata Figure Schemes 6 The Issue


slide-1
SLIDE 1

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

1/17

New Figure Schemes for Stata: plotplain & plottig

Daniel Bischof1

1University of Zurich

November 17, 2016

slide-2
SLIDE 2

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

2/17

The Default Stata Figure Schemes

1 2 3 4 5 6 4 5 6 7 logged number of terrorist events 95% CI Fitted values logged number of killed people

slide-3
SLIDE 3

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

3/17

Limitations

colors are difficult to differentiate for colorblind people background tinting frames symbols, markers, lines often too thick gridlines only parallel to x-axis legends could be placed closer to content of figure

slide-4
SLIDE 4

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

4/17

Solutions

1 the obvious solution is to produce code

slide-5
SLIDE 5

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

4/17

Solutions

1 the obvious solution is to produce code; lots of code . . .

slide-6
SLIDE 6

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

5/17

Solutions

twoway /// (line numcountries year, lcolor(gs12)) /// , ylabel(, angle(horizontal)) xtitle("") /// graphregion(fcolor(white) lcolor(white) lwidth(vvvthick) ifcolor(white) ilcolor(white) ilwidth(vvvthick)) /// plotregion(lcolor(white) lwidth(vvvthick) ifcolor(white) ilcolor(white) ilwidth(vvvthick)) /// legend(cols(1) region(lcolor(white)))

slide-7
SLIDE 7

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

6/17

Solutions

1 the obvious solution is to produce code; lot’s of code . . . 2 use Billy Buchanan’s brewscheme to define your own

designs

slide-8
SLIDE 8

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

6/17

Solutions

1 the obvious solution is to produce code; lot’s of code . . . 2 use Billy Buchanan’s brewscheme to define your own

designs

3 write a new package addressing some of the key

limitations

slide-9
SLIDE 9

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

7/17

Why write a new figure scheme?

! time ! ensure quality (create uniform norm) ! simplify the usage of more and new colors ! many users lack knowledge how to adapt figures ⇒ there seems to be a high demand for new and alternative figure schemes

slide-10
SLIDE 10

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

8/17

Solution 3: Write a new figure scheme

I wrote 2 figure schemes: plotplain: very simple, “clean” figure scheme plottig: replicates ggplot2 (R) by Hadley Wickham in most regards

slide-11
SLIDE 11

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

8/17

Solution 3: Write a new figure scheme

I wrote 2 figure schemes: plotplain: very simple, “clean” figure scheme plottig: replicates ggplot2 (R) by Hadley Wickham in most regards → both available with colors distinguishable for colorblind people

slide-12
SLIDE 12

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

9/17

Solution 3: blindschemes in the SSC Archive

slide-13
SLIDE 13

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

10/17

Plotplain

1 2 3 4 5 6 4 5 6 7

logged number of terrorist events

Western Europe North America MENA

slide-14
SLIDE 14

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

11/17

Plottig

1 2 3 4 5 6 4 5 6 7 logged number of terrorist events Western Europe North America MENA

slide-15
SLIDE 15

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

12/17

The colorblind colors

2 4 6 8 10

plotplainblind

black gs10 sky turquoise

  • rangebrown

reddish vermillion sea ananas 5 10 15

plottig

black plr1 ply1 plg1 plb1 pll1 plr2 ply2 plg2 plb2 pll2 ply3 plg3 plb3 pll3

slide-16
SLIDE 16

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

13/17

Adaptation of Code: Gridlines

lpoly nkill iyear if region==12, /// ci legend(off) title("Polynomial fit of terrorist casualties in Western Europe") /// note("")

slide-17
SLIDE 17

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

14/17

Adaptation of Code: Gridlines

1 2 3 4 5 6 logged number of killed people 1970 1980 1990 2000 2010 2020 incident year

Polynomial fit of terrorist casualties in Western Europe

slide-18
SLIDE 18

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

15/17

Adaptation of Code: Gridlines

lpoly nkill iyear if region==12, /// ci legend(off) title("Polynomial fit of terrorist casualties in Western Europe") /// note("") xlabel(, nogrid)

slide-19
SLIDE 19

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

16/17

Adaptation of Code: Gridlines

1 2 3 4 5 6 logged number of killed people 1970 1980 1990 2000 2010 2020 incident year

Polynomial fit of terrorist casualties in Western Europe

slide-20
SLIDE 20

The Issue Solutions blindschemes The Schemes Adaptation Conclusion

17/17

Conclusion

+ Improvement: Less code needed, users can focus on other tasks + Disagreement: Even if you disagree, less changes are needed for further adaptation

  • Concerns: Still issues remain, e.g. overlapping confidence

intervals For further information including the working paper on the schemes:

danbischof.com