Skip to content

Commit

Permalink
Add ggplot2 example into revealjs presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Nov 17, 2023
1 parent d4ff080 commit d0f89de
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion examples/revealjs/index.qmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: "quarto-webr Demo RevealJS Document"
format: revealjs
webr:
packages: ['ggplot2']
filters:
- webr
---
Expand All @@ -25,12 +27,19 @@ fit = lm(mpg ~ wt, data = mtcars)
summary(fit)
```

## Graphing with webR
## Base R Graphing with webR

```{webr-r}
plot(pressure)
```

## ggplot2 in webR

```{webr-r}
ggplot(mpg, aes(displ, hwy, colour = class)) +
geom_point()
```

## Help Documentation

```{webr-r}
Expand Down

0 comments on commit d0f89de

Please sign in to comment.