Katja Kozjek
NBIS, SciLifeLab
14-Apr-2025
An open-source scientific and technical publishing system
Quarto file – a plain text file that has the extension .qmd
---
title: "Palmer penguins"
author: "Katja"
date: today
format:
html:
code-fold: true
code-tools: true
toc: true
number-sections: true
execute:
warning: false
---
# Meet the penguins
The `palmerpenguins` data contains size measurements for three penguin species
observed on three islands in the Palmer Archipelago, Antarctica.

The three species of penguins have quite distinct
distributions of physical dimensions (@fig-penguins).
```{r packages}
#| label: load packages and data
#| warning: false
#| output: false
library(ggplot2)
library(palmerpenguins)
library(dplyr)
data(penguins, package = "palmerpenguins")
```
## Bill dimensions
```{r bill dimensions}
#| label: fig-penguins
#| warning: false
#| fig-cap: "Bill dimensions of penguins across three species."
#| fig-width: 10
#| fig-height: 5
penguins %>%
ggplot(aes(x = bill_length_mm, y = bill_depth_mm)) +
geom_point(aes(color = species,
shape = species),
size = 2) +
geom_smooth(method = "lm", se = FALSE, aes(color = species)) +
scale_color_manual(values = c("darkorange","darkorchid","cyan4")) +
labs(color = "Species", shape = "Species") +
xlab("Bill length (mm)") + ylab("Bill depth (mm)") +
theme_bw()
```
---
title: "Palmer penguins"
subtitle: "Intro to Quarto Exercise"
author: "Katja"
date: today
format:
html:
code-fold: true
code-tools: true
toc: true
number-sections: true
execute:
warning: false
---
---
# Meet the penguins
The `palmerpenguins` data contains size measurements for three penguin species
observed on three islands in the Palmer Archipelago, Antarctica.

The three species of penguins have quite distinct
distributions of physical dimensions (@fig-penguins).
## Bill dimensions
## Bill dimensions
```{r bill dimensions}
#| label: fig-penguins
#| warning: false
#| fig-cap: "Bill dimensions of penguins across three species."
#| fig-width: 10
#| fig-height: 5
penguins %>%
ggplot(aes(x = bill_length_mm, y = bill_depth_mm)) +
geom_point(aes(color = species,
shape = species),
size = 2) +
geom_smooth(method = "lm", se = FALSE, aes(color = species)) +
scale_color_manual(values = c("darkorange","darkorchid","cyan4")) +
labs(color = "Species", shape = "Species") +
xlab("Bill length (mm)") + ylab("Bill depth (mm)") +
theme_bw()
```
quarto::quarto_preview("report.qmd")
quarto preview report.qmd
quarto::quarto_render("report.qmd")
quarto render report.qmd