WebR Demo
Joint Statistical Meeting 2023
This is a demo of webR, a Quarto extension to add executable R code chunks to HTML documents.
Load packages
Data
We will use the mpg
data set from the ggplot2 package. This data set contains information about the fuel economy for cars in which new models were released every year between 1999 and 2008.
Let’s begin by looking at the first few rows of the data.
Exploratory data analysis
We will look at the relationship between the number of cylinders and highway mileage.
Learn more about webR
Documentation: docs.r-wasm.org/webr
GitHub repo: github.com/coatless/quarto-webr