29-Oct-2024
---
title: "There's something about penguins"
author: "John Doe, Joan Doe, Dyon Do"
date: today
format: html
---
# Palmer penguins
```{r Penguin figure}
#| fig-width: 10
#| fig-height: 5
library("ggplot2")
library("palmerpenguins")
data(penguins, package = "palmerpenguins")
ggplot(penguins, aes(x = bill_length_mm,
y = body_mass_g,
colour = species)) +
geom_point(size = 2) +
theme_bw() +
labs(x = "Bill length (mm)",
y = "Body mass (g)",
colour = "Species") +
scale_colour_manual(values = c("#c1dea0", "#85be42", "#425f21"))
```
---
title: "There's something about penguins"
author: "John Doe, Joan Doe, Dyon Do"
date: today
format: html
---
# Palmer penguins
```{r Penguin figure}
#| fig-width: 10
#| fig-height: 5
library("ggplot2")
library("palmerpenguins")
data(penguins, package = "palmerpenguins")
ggplot(penguins, aes(x = bill_length_mm,
y = body_mass_g,
colour = species)) +
geom_point(size = 2) +
theme_bw() +
labs(x = "Bill length (mm)",
y = "Body mass (g)",
colour = "Species") +
scale_colour_manual(values = c("#c1dea0", "#85be42", "#425f21"))
```
A YAML header:
Markdown text:
Code chunks:
Many IDEs like VS Code and RStudio also have buttons to render Quarto documents.
library("ggplot2")
library("palmerpenguins")
data(penguins, package = "palmerpenguins")
ggplot(penguins, aes(x = bill_length_mm,
y = body_mass_g,
colour = species)) +
geom_point(size = 2) +
theme_bw() +
labs(x = "Bill length (mm)",
y = "Body mass (g)") +
ggtitle("Penguin weight and bill length") +
theme(plot.title = element_text(hjust = 0.5)) +
scale_colour_manual(values = c("#c1dea0",
"#85be42",
"#425f21"))