1 + 1
[1] 2
Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.
When you click the Render button a document will be generated that includes both content and the output of embedded 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).
<- matrix(c(rnorm(1e4), rnorm(1e4, 1, 0.95)), ncol = 2) data
<- 1e4
n <- data[, 1]
x <- data[, 2]
y <- rnorm(n, 0, 0.01)
y_offset plot(density(x), col = "darkred")
lines(density(y), col = "darkblue")