---
title: "notes0203"
author: "Sean Laverty"
format: html
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.

## Running Code

When you *click* the **Render** button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

```{r}
1 + 1
```

You can add options to executable code like this

```{r}
#| echo: false
2 * 2
```

The `echo: false` option disables the printing of code (only output is displayed).

```{r}
#| label: read-data
dat <- read.delim("cards2.csv", header = TRUE, sep = ',')
head(dat)
```

Since we explored this data, let's make a new boxplot. In @fig-boxplot1 we see that reaction times for card D are larger and more variable.  
```{r}
#| label: fig-boxplot1
#| fig-cap: Boxplot of reaction time against card type.
#| fig-width: 5
#| fig-height: 5
#| fig-align: center
boxplot(Time1 ~ Card, dat, col = 2:6)
```

In a second trial, we recorded additional reaction times, this time using larger-format cards. These results are shown in @fig-boxplot2.

```{r}
#| label: fig-boxplot2
#| fig-cap: Boxplot of reaction time against card type using large-format cards.
#| fig-width: 5
#| fig-height: 5
#| fig-align: center
boxplot(Time2 ~ Card, dat, col = 2:6)
```





