R Snippets with Rendered Chart Example

workflow
Author

Craig

Published

October 6, 2023

Simple example of using R snippets to show a chart.

This ggplot example is built from the quarto documentation.

Air Quality

Figure 1 further explores the impact of temperature on ozone level.

library(ggplot2)

ggplot(airquality, aes(Temp, Ozone)) + 
  geom_point() + 
  geom_smooth(method = "loess")

Figure 1: Temperature and ozone level.

The sample blog template also comes with a simple R system addition test.

1 + 1
[1] 2