```{r}
#| label: penguin-species
#| message: false
library(tidyverse)
library(palmerpenguins)
penguins |>
distinct(species)
```
# A tibble: 3 × 1
species
<fct>
1 Adelie
2 Gentoo
3 Chinstrap
Hello Quarto
Quarto® is an open-source scientific and technical publishing system built on Pandoc that aims to make the process of creating and collaborating dramatically better
With Quarto you can weave together narrative text and code to produce elegantly formatted output as documents, web pages, blog posts, books and more.
just like R Markdown…
but not just like it, there’s more to it…
unifies + extends the R Markdown ecosystem
unifies + extends the R Markdown ecosystem
unifies for people who love R Markdown
unifies + extends the R Markdown ecosystem
unifies for people who love R Markdown
extends for people who don’t know R Markdown
}
---
title: "ggplot2 demo"
author: "Norah Jones"
date: "May 22nd, 2021"
format:
html:
code-fold: true
---
## Air Quality
@fig-airquality further explores the impact of temperature
on ozone level.
```{r}
#| label: fig-airquality
#| fig-cap: Temperature and ozone level.
#| warning: false
library(ggplot2)
ggplot(airquality,
mapping = aes(x = Temp, y = Ozone)
) +
geom_point() +
geom_smooth(method = "loess"
)
```
processed in many stages of the rendering process and can influence the final document in many different ways. It is placed at the very beginning of the document and is read by each of Pandoc, Quarto and
knitr
. Along the way, the information that it contains can affect the code, content, and the rendering process.
}
r
) is indicated between curly braces {r}
#|
(hashpipe): #| option1: value
Quarto is based on Pandoc and uses its variation of markdown as its underlying document syntax. Markdown is a plain text format that is designed to be easy to write, and, even more importantly, easy to read
Markdown Syntax | Output |
---|---|
|
italics and bold |
|
superscript2 / subscript2 |
|
|
|
verbatim code |
Markdown Syntax | Output |
---|---|
|
Header 1 |
|
Header 2 |
|
Header 3 |
|
Header 4 |
|
Header 5 |
|
Header 6 |
Unordered list:
Output
Ordered list:
Using the visual editor, add the following to your Quarto document:
Rendering a Quarto file in RStudio via the Render button calls quarto render
in a background job, preventing Quarto rendering from cluttering up the R console, and gives you and easy way to stop the render process.
There are a few different ways to render a Quarto file:
quarto render
:quarto render
orquarto::quarto_render()
Notice!
html:
is now on a new line
this line is below format:
and indented
the HTML formatting options are on their own line
these lines are below html:
and indented
The exhaustive list of YAML options that can be used for HTML documents can be found here: https://quarto.org/docs/reference/formats/html. You can also get a drop down menu of all possible YAML options by hitting Try Ctrl + space
.
Using this resource add the following to your document:
Afterward, add at least one additional YAML option of your choosing!