My Quarto test

Quarto

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

Running Code

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).

Including plots

You can embed plots, for example: Figure 1 is

plot(pressure)
Figure 1: The plot of pressure and temperature.

Car data (the “something different” part)

The built-in cars dataset records speed and stopping distance (Ezekiel 1930).

summary(cars)
     speed           dist       
 Min.   : 4.0   Min.   :  2.00  
 1st Qu.:12.0   1st Qu.: 26.00  
 Median :15.0   Median : 36.00  
 Mean   :15.4   Mean   : 42.98  
 3rd Qu.:19.0   3rd Qu.: 56.00  
 Max.   :25.0   Max.   :120.00  
plot(cars$speed, cars$dist, xlab = "Speed (mph)", ylab = "Stopping distance (ft)")
abline(lm(dist ~ speed, data = cars), col = "red")
Figure 2: Stopping distance vs. speed.

Figure 2 shows that stopping distance rises with speed.

References

Ezekiel, Mordecai. 1930. Methods of Correlation Analysis. New York: Wiley.