Skip to content
R for the Rest of Us Logo

Fundamentals of R

Quarto Overview

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

  1. Copy the code below to create a new Quarto file, setting the author as your name, and the output format as Word.

  2. Save your Quarto file as penguins-report.qmd.

  3. Look through this Quarto file and make sure that you can identify the YAML, text sections, and code chunks.

  4. Click the Render button and open the file that gets produced (penguins-report.docx).

---
title: My Penguins Report
author: David Keyes
format: docx
---

```{r}
library(tidyverse)

penguins <- read_csv("penguins.csv")
```

# Introduction

This report is about **three** species of penguins

1. Adele
1. Gentoo
1. Chinstrap

You'll learn *so* much about the penguins. I hope you're ready!

# Results

Here is a chart showing the average bill length for penguins, grouped by island and sex.
			
```{r}
penguin_bill_length_by_island_and_sex <-
  penguins |>
  drop_na(sex) |>
  group_by(island, sex) |>
  summarize(mean_bill_length = mean(bill_length_mm))

ggplot(
  data = penguin_bill_length_by_island_and_sex,
  mapping = aes(
    x = island,
    y = mean_bill_length,
    fill = sex
  )
) +
  geom_col(position = "dodge")
```

Learn More

The Quarto documentation website is a great place to start learning about Quarto. I also recommend the book, Quarto: The Practical Guide by Mine Çetinkaya-Rundel and Charlotte Wickham.

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.