WebR Demo

Joint Statistical Meeting 2023

Author

Maria Tackett

Published

August 7, 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.


Your turn!

Now let’s see which manufacturers are in the data and how often they occur. Print the results in descending order.


Exploratory data analysis

We will look at the relationship between the number of cylinders and highway mileage.


Your turn!

Create a visualization of the distribution of type of drive train (drv).


Learn more about webR