General Quarto Document Things

In your YAML header, you can add additional items to control the entire document:

TRY:

format: html: code-fold: true

To make the code portions “expandable/collapsable”.

Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.

General Markdown Text

# symbols create headers of various size (# is the largest, each additional decreases size to align with “Header 1”, “Header 2”, etc.)

* italics

** bold

*** italics + bold

~~ strikethrough

^ superscript

~ subscript

Putting images into a document:

This won’t work, elephant.png doesn’t exist, and the system tells you so.

This is a holiday wreath.

(icon from Christmas icons created by Umeicon - Flaticon)

You can change the size of this figure with: {width=10%} or {height=2in} or {height=100px} edits at the end of the image line.

Additional:

Lists, tables, diagrams etc. https://quarto.org/docs/authoring/markdown-basics.html

Integrating Code

You can embed code like this:

1 + 1
[1] 2

You can add options to executable code like this

[1] 4

The echo: false option disables the printing of code (only output is displayed).

You can also use things like: #| label: < to make the figure able to be cross-referenced #| fig-cap: “” < to add a caption to a printed out image #| warning: false < to cause warnings to not print out

df <- data.frame(x_values = c(1, 2, 3, 4, 5), 
                    y_values = c(2, 4, 6, 8, 10), 
                    change_shape = c("interesting", "not", "not", "not", "not"))

library(ggplot2)
Warning: package 'ggplot2' was built under R version 4.3.2
ggplot(df, aes(x = x_values, y = y_values, shape = change_shape)) + 
  geom_point(size = 3) + 
  theme_bw() + 
  labs(title = "Example", 
       x = "", 
       y = "", 
       shape = "Interest Factor")

Adding a caption for additional details.