Lab 13: A Short Report
A penguin table, a captioned plot, and a citation.
Work in a Quarto document. Do notes
13.1 and 13.2 first. Render to HTML.
You will need tidyverse, palmerpenguins, and
knitr.
1. Setup and packages
- A setup chunk that calls
knitr::opts_chunk$set()withecho = TRUEandmessage = FALSE. Hide the setup chunk itself (include: false). - Load
tidyverseandpalmerpenguinswithout printing package startup text.data(penguins)if the tibble is not already attached.
2. A table and a plot
- A
kableof a three-column summary of bill length by species (species, mean bill length, andnis enough). Give the table a caption. - A scatterplot of
bill_length_mmvsbill_depth_mm, colored byspecies. Give the figure a caption.
3. A citation and folding
- Download
test_rmd_file.bibfrom the Data section into abib/folder. Point YAML at it (bibliography: bib/test_rmd_file.bib). Cite the palmerpenguins entry with@plus the key from the file. - Optional: fold the code in the YAML (
code-fold: truein Quarto, orcode_folding: hidein an.Rmd).