Who Says You R Not a Coder?
Building Data-Driven, Open Source, Static Course Content for Accessibility and Interactivity with R


Ryan Straight, Ph.D

College of Applied Science and Technology
University of Arizona

OUR AGENDA

The Plan for Today

  1. Introduction
  2. But I’m not a coder…
  3. “Data-driven?”
  4. What is R? What is markdown? What is Quarto?
  5. Examples
  6. Takeaways

Link to this slide deck!

WHO

Ryan Straight, Ph.D
Honors/Associate Professor of Practice Applied Computing & Cyber Operations
Director, MA{VR}X Lab
College of Applied Science and Technology
University of Arizona

BUT I’M NOT A CODER

Don’t underestimate yourself!

  1. You are.
  2. Really, you are.
  3. Did I mention you’re a coder?

DATA-DRIVEN?

APCV 302

Statistics in the Information Age

https://uaappcomp.github.io/apcv302/

R, MARKDOWN, & QUARTO

R

```{r}
#| output-location: column
#| label: fig-airquality
#| fig-cap: Temperature and ozone level.
#| fig-alt: "Air quality by temperature and ozone."
library(ggplot2)
ggplot(airquality, aes(Temp, Ozone)) + 
  geom_point() + 
  geom_smooth(method = "loess"
)
```

Air quality by temperature and ozone.

Figure 1: Temperature and ozone level.

Markdown

Markdown Syntax Output
*italics* and **bold**
italics and bold
superscript^2^ / subscript~2~
superscript2 / subscript2
~~strikethrough~~
strikethrough
`verbatim code`
verbatim code

Headings

Markdown Output
# Header 1

Header 1

## Header 2

Header 2

### Header 3

Header 3

#### Header 4

Header 4

##### Header 5
Header 5
###### Header 6
Header 6

Quarto

Let’s talk Quarto!

EXAMPLES

Interactivity

Interactivity

Converting temperature from ℃ to ℉

Celsius = and Fahrenheit = ℉.

Accessibility

  • Easy alt-text
  • A11y themes
  • Screenreader friendly
  • Slide tones

\(LaTeX\)

Standard deviation

\[ \sigma = \sqrt{\frac{1}{N} \sum_{i=1}^N (x_i - \mu)^2} \]

Naive Bayes: posterior probability

\[ P(\omega_j|x) = \frac{p(x|\omega_j) \cdot P(\omega_j)}{p(x)} \]

And, of course, GIFs

Syllabus!

TAKEAWAYS

Step-by-Step

https://github.com/ryanstraight/ac22/

THE END

That’s a wrap!

Thank you for coming! Find out more at: