class: title-slide, middle # Teaching Accessibility in the Data Science Curriculum ## Mine Dogucu ### Department of Statistics Seminar at University of California Irvine <br> [mdogucu.github.io/uci-stats-2022](https://mdogucu.github.io/uci-stats-2022) ### 2022-06-02 --- class: middle ## Statistics - 61 million adults in the United States live with a disability - 26 percent (one in 4) of adults in the United States have some type of disability. - 4.6 percent of people with a disability have a vision disability with blindness or serious difficulty seeing even when wearing glasses. [CDC Infographic on disability](https://www.cdc.gov/ncbddd/disabilityandhealth/infographic-disability-impacts-all.html) --- class: middle ## ADA Americans With Disabilities Act (ADA) of 1990 prohibits discrimination against individuals with disabilities in all areas of public life. **Ableism** is discrimination in favor of able-bodied people. --- class:center <img src="img/bayes-rules-hex.png" title="a hex shaped logo with shiny green-pink disco ball and purple starry background. There is text that says Bayes Rules!" alt="a hex shaped logo with shiny green-pink disco ball and purple starry background. There is text that says Bayes Rules!" width="25%" style="display: block; margin: auto;" /> .pull-left[ <script src="https://use.fontawesome.com/releases/v5.15.1/js/all.js" data-auto-replace-svg="nest"></script> <i class="fas fa-book fa-2x" aria-hidden="true" title="Book icon"></i> [Bayes Rules! An Introduction to Applied Bayesian Modeling](https://bayesrulesbook.com) ] .pull-right[ <i class="fab fa-r-project fa-2x" aria-hidden="true" title="R logo"></i> [{bayesrules}](https://www.github.com/bayes-rules/bayesrules) ] --- class: middle .pull-left[ .center[ <img src="img/alicia.jpeg" alt="A headshot of a woman with long blonde hair wearing a brownish yellow tshirt and a red and pink floral silk scarf wrapped around her neck." style="width:165px; margin-top:20px; border: 3px solid whitesmoke; padding: 10px;"> Alicia Johnson .font-20[Macalester College] [
](https://ajohns24.github.io/portfolio) [
](https://github.com/ajohns24) ] ] .pull-right[ .center[ <img src="img/miles.png" alt="A headshot of a man with short dark hair, and a dark moustache. He is wearing a blue button up shirt and dark gray jacket" style="width:165px; margin-top:20px; border: 3px solid whitesmoke; padding: 10px;"> Miles Ott .font-20[Twitter] [
](https://milesott.com/) [
](https://github.com/MilesOtt) [
](https://twitter.com/Miles_Ott) ] ] --- class: middle [Dogucu, M., Johnson, A. A., & Ott, M. (2021). Framework for Accessible and Inclusive Teaching Materials for Statistics and Data Science Courses. arXiv preprint arXiv:2110.06355.](https://arxiv.org/abs/2110.06355) --- class: center middle ### Accessibility and Inclusion |Accessibility and Inclusion Criteria |Questions | |:------------------------------------|:---------------------------------------------------------------------------| |Accessibility |Is the cost affordable for learners from diverse socioeconomic backgrounds? | | |Are plots distinguishable to color blind learners? | | |Is alt text provided for images? | --- class: center middle |Accessibility and Inclusion Criteria |Questions | |:------------------------------------|:----------------------------------------------------------------------------------------| |Inclusivity of scholars |Do the cited scholars represent diversity across identities, experiences, and expertise? | | |Are scholars cited using the correct names and pronouns? | --- class: center middle |Accessibility and Inclusion Criteria |Questions | |:------------------------------------|:----------------------------------------------------------------------------------------------| |Inclusivity of students |Do examples avoid the necessity of specialized knowledge? | | |Do names and pronouns reflect diverse cultural and personal identities? | | |Are there examples that could potentially speak to younger as well as older students? | | |Does the delivery embrace mistakes and critical thinking? | | |Are efforts made to accommodate different academic experiences and create a shared foundation? | --- class: middle ## Teaching Accessibility I was supported by the [Teach Access](https://teachaccess.org/) network. <img src="img/teach_access_logo.jpg" title="Teach Access logo that is an illustration of a bridge" alt="Teach Access logo that is an illustration of a bridge" width="40%" style="display: block; margin: auto;" /> --- class: middle .center[ <img src="img/jooyoung.jpeg" alt="A headshot of a man with short, straight, dark hair. He is wearing a white button up shirt and black rectangular glasses." style="width:165px; margin-top:20px; border: 3px solid whitesmoke; padding: 10px;"> JooYoung Seo .font-20[University of Illonois Urbana-Champaign] [
](https://jooyoungseo.github.io/) [
](https://github.com/jooyoungseo) [
](https://twitter.com/seo_jooyoung) ] --- class: middle [Computing Competencies for Undergraduate Data Science Curricula](https://dstf.acm.org/DSReportDraft2Full.pdf) by Association for Computing Machinery (ACM) Data Science Task Force Draft 2 was published in **December 2019** Analysis and Presentation, Foundational considerations, Knowledge **Accessibility considerations for different groupings of users including those with special needs** --- class: middle ## Accessibility as Career Preparation [Accessible Technology Skills Gap Report by The Partnership on Employment & Accessible Technology (PEAT), 2018](https://www.peatworks.org/infographic-the-accessible-technology-skills-gap/) 84% of industry respondents say it is important or very important to their company to hire developers and designers with accessible technology skills. 60% said it was difficult or very difficult for their organization to find job candidates with accessibility skills. 0% said it was easy or very easy. 41% of companies consider accessibility certification credentials as a differentiator in hiring. --- class: middle ## Curriculum Goal As educators, we have to ensure that the current and the next generation of data scientists, provide public-facing outputs (websites, analysis reports, etc.) that are accessible. --- class: middle ## Learning Objectives - Student should get familiar with American Disabilities Act. - Students should use at least one assistive technology (i.e. screen reader). - Students should consider different representations of data. --- class: middle ## Assistive Technology - Assistive Technology is any form of technology (software, device) that helps people with disabilities perform certain activities. Examples: - walking sticks - wheel chairs - screen readers --- class: middle ## Screen reader A screen reader is an assistive technology that supports blind or visually impaired people in using their computer. <!-- We can do a demo here--> --- class: middle Students can use screen reader on Windows and Mac - If you are on a Windows machine go to Settings > Ease of Access > Narrator,and then turn on the toggle under Use Narrator. - If you are on a Mac go to System Preferences > Accessibility > Voice Over > Enable Voice Over --- class: middle ## Data Visualization - Colors <img src="index_files/figure-html/unnamed-chunk-3-1.png" title="Three separate scatterplots in three rows showing bill depth and bill length of three separate species of penguins Adelie, Chinstrap, and Gentoo respectively and the points representing each observation are red, green, and blue respectively." alt="Three separate scatterplots in three rows showing bill depth and bill length of three separate species of penguins Adelie, Chinstrap, and Gentoo respectively and the points representing each observation are red, green, and blue respectively." style="display: block; margin: auto;" /> --- class: middle ### Color Blindness Simulator ```r colorblindr::cvd_grid(fig) ``` <img src="index_files/figure-html/unnamed-chunk-5-1.png" title="A 2 by 2 grid of four scatterplots. The scatterplots are the same as the scatterplot in the previous figure except for colors. From left to right and top to bottom the plots read deutanomly, protanomly, tritanomly, and desaturated" alt="A 2 by 2 grid of four scatterplots. The scatterplots are the same as the scatterplot in the previous figure except for colors. From left to right and top to bottom the plots read deutanomly, protanomly, tritanomly, and desaturated" width="40%" style="display: block; margin: auto;" /> --- class: middle [Color blindness simulation](https://www.color-blindness.com/coblis-color-blindness-simulator/): red-blind/protanopia <img src="img/red-blind.png" title="The same scatterplots are displayed but Adelie and Chinstrap penguin data are shown with a very similar yellow-brownish green. There is no red visible." alt="The same scatterplots are displayed but Adelie and Chinstrap penguin data are shown with a very similar yellow-brownish green. There is no red visible." width="60%" style="display: block; margin: auto;" /> --- class: middle [Color blindness simulation](https://www.color-blindness.com/coblis-color-blindness-simulator/): green-blind/deuteranopia <img src="img/green-blind.png" title="The same scatterplots are displayed but Adelie and Chinstrap penguin data are shown with a very similar yellow-brownish green. There is no red visible. The gray background is also a bright pink." alt="The same scatterplots are displayed but Adelie and Chinstrap penguin data are shown with a very similar yellow-brownish green. There is no red visible. The gray background is also a bright pink." width="60%" style="display: block; margin: auto;" /> --- class: middle [Color blindness simulation](https://www.color-blindness.com/coblis-color-blindness-simulator/): blue-blind/tritanopia <img src="img/blue-blind.png" title="The same scatterplots are displayed but Adelie and Gentoo penguin data are shown with a very similar greenish blue." alt="The same scatterplots are displayed but Adelie and Gentoo penguin data are shown with a very similar greenish blue." width="60%" style="display: block; margin: auto;" /> --- class: middle ### Okabe-Ito Color Palette ```r palette.colors(palette = "Okabe-Ito") ``` ``` ## black orange skyblue bluishgreen yellow blue vermillion ## "#000000" "#E69F00" "#56B4E9" "#009E73" "#F0E442" "#0072B2" "#D55E00" ## reddishpurple gray ## "#CC79A7" "#999999" ``` --- class: middle ```r fig + colorblindr::scale_color_OkabeIto() ``` <img src="index_files/figure-html/unnamed-chunk-11-1.png" title="Three separate scatterplots in three rows showing bill depth and bill length of three separate species of penguins Adelie, Chinstrap, and Gentoo respectively and the points representing each observation are orange, blue, and green respectively." alt="Three separate scatterplots in three rows showing bill depth and bill length of three separate species of penguins Adelie, Chinstrap, and Gentoo respectively and the points representing each observation are orange, blue, and green respectively." width="45%" style="display: block; margin: auto;" /> --- class: middle ### Resources [Color Blindness Simulator](https://www.color-blindness.com/coblis-color-blindness-simulator/) You can upload any image and in return get an image with colors that would be visible to color-blind people with specific color vision deficiency. [Okabe-Ito 2008](https://jfly.uni-koeln.de/color/) Color Universal Design. Color palette that is color-blind friendly. [Okabe-Ito color-palette](https://mikemol.github.io/technique/colorblind/2018/02/11/color-safe-palette.html) Color codes for Okabe-Ito palette. --- class: middle ## Data Verbalization ### Alternate Text - "Alt text" describes contents of an image. - It is used in HTML pages. - Screen-readers cannot read images but can read alt text. - Alt text has to be provided. - We can verbalize data via alternate text. --- class: center middle ## (some) Chunk Options in R Markdown <table align = "center"> <tr> <td>echo = FALSE</td> <td>hides the code</td> </tr> <tr> <td>warning = FALSE</td> <td>hides warning</td> </tr> <tr> <td>error = TRUE</td> <td>renders despite errors and displays the error</td> </tr> <tr> <td>fig.cap = "Some figure caption"</td> <td>creates a figure caption</td> </tr> <tr> <td>fig.align = "center"</td> <td>centers the figure in the page</td> </tr> <tr> <td>fig.alt = "Some alternate text for figure"</td> <td>creates alternate text for figures</td> </tr> </table> --- class: middle <img src="img/alttext-github-issue.png" title="GitHub issue created on RStudio's RMarkdown repo asking for fig.alt option to be created" alt="GitHub issue created on RStudio's RMarkdown repo asking for fig.alt option to be created" width="100%" style="display: block; margin: auto;" /> --- class: middle ### Manual Alternate Text - Chart type - Type of data - Reason for including the chart - Link to data or source (not in alt text but in main text) [Amy Cesal](https://medium.com/nightingale/writing-alt-text-for-data-visualization-2a218ef43f81) --- class: middle ### Data Verbalization - Automated <img src="index_files/figure-html/unnamed-chunk-14-1.png" style="display: block; margin: auto;" /> The automated alternate text for this plot is on the next slide. --- class: middle ### Data Verbalization - Automated ```r BrailleR::VI(example_barplot) ``` ``` ## This is an untitled chart with no subtitle or caption. ## It has x-axis 'transmission' with labels automatic and manual. ## It has y-axis 'count' with labels 0, 5, 10 and 15. ## The chart is a bar chart with 2 vertical bars. ## Bar 1 is centered horizontally at automatic, and spans vertically from 0 to 19. ## Bar 2 is centered horizontally at manual, and spans vertically from 0 to 13. ``` <hr> Drawback of using `VI()` is that not every type of plot can be verbalized yet. --- class: middle ### Alternate Texts are Under Utilized in the Data Science Community "Over the 3 years of TidyTuesday, there were 7,136 data viz tweets and only 215 (3%) of them had alt-text" [Canelón & Hare, 2021 ](https://github.com/spcanelon/csvConf2021) --- class: middle ## Data Sonification Data sonification is the presentation of data as sound. Examples: [SAS Graphics Accelerator Examples](https://support.sas.com/software/products/graphics-accelerator/samples/index.html) [SAS Graphics Accelerator Chrome Extension](https://chrome.google.com/webstore/detail/sas-graphics-accelerator/ockmipfaiiahknplinepcaogdillgoko?hl=en) R example: ```r sonify::sonify(1:10) ``` --- class: middle ## Data Tactualization Data tactulization refers to making data visualization in a form so that it can be touchable by fingers. .center[ <iframe width="560" height="315" src="https://www.youtube.com/embed/ClI555l4Z1M" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> ] --- class: middle ## Data Tactualization .pull-left[ ```r library(tactileR) brl_begin(file = 'tactile.pdf', pt = 11, paper = 'special', font='BRL') hist(airquality$Ozone) brl_end() ``` ] <!--the swell touch paper through swell form heating machine--> .pull-right[ <img src="img/hist-braille.png" title="A histogram with x and y labels, title displayed in Braille." alt="A histogram with x and y labels, title displayed in Braille." width="80%" style="display: block; margin: auto;" /> ] --- class: middle ## When? - Stats 5 - Seminar in Data Science - ICS 80 - Introduction to Data Science - Stats 295 - Scientific Computing with R --- class: middle ## Important Take-Aways - Relevant to undergraduate and graduate curriculum - Can be taught in language-specific and language-agnostic courses - Students should be assessed on the practice of accessibility practices - Students should be able to take away this knowledge to non-data specific courses. --- class: middle center ## Thank you <hr> Mine Dogucu <i class="fa-solid fa-envelope" title="Email Icon"></i> [mdogucu@uci.edu](mailto:mdogucu@uci.edu) <i class="fa-brands fa-twitter" title="Twitter Icon"></i> [MineDogucu](https://twitter.com/MineDogucu) <i class="fa-brands fa-github" title="GitHub Icon"></i> [mdogucu](https://github.com/mdogucu)