Skip to content

Commit

Permalink
patch(regression_plot): Fix df not being present by generating the …
Browse files Browse the repository at this point in the history
…data in function.
  • Loading branch information
coatless committed Nov 1, 2024
1 parent dc1a21c commit 096454c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ format:

## Welcome to the Future of Data Science Education

In this demonstration, we showcase cutting-edge technology that brings interactive coding directly into slide decks using WebAssembly (WASM) through the new official Quarto WebAssembly backend: [`quarto-live`](https://r-wasm.github.io/quarto-live/) by George Stagg. This innovative approach revolutionizes how we present and teach data science concepts by allowing for real-time code execution, visualization, and exercises within the presentation itself.
In this demonstration, we showcase cutting-edge technology that brings interactive coding directly into slide decks using WebAssembly (WASM) through the new official Quarto WebAssembly backend: [`quarto-live`](https://r-wasm.github.io/quarto-live/) by George Stagg. This innovative approach revolutionizes how we present and teach data science concepts by allowing for real-time code execution, visualization, and exercises within the presentation itself. For more on the Quarto WebAssembly backend, see the [official documentation](https://r-wasm.github.io/quarto-live/).

You can view the demonstration of this technology in the following slide deck:

{{< revealjs file="slides/lecture-01.html" height="500px">}}

For more on the Quarto WebAssembly backend, see the [official documentation](https://r-wasm.github.io/quarto-live/).
In interactive lab form, we have:

- [Exploring Palmer Penguins](tutorials/data-manuipulation.qmd)


## What's Inside

Expand Down
5 changes: 5 additions & 0 deletions slides/lecture-01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ regression_plot(beta_0, beta_1)
#| define:
#| - regression_plot
regression_plot <- function(beta_0, beta_1) {
# Figure out why scope changed between Live august and now.
set.seed(123)
x <- 1:100
y <- 2 * x + 1 + rnorm(100, mean = 0, sd = 3)
df <- data.frame(x = x, y = y)
# Create scatter plot
plot(
Expand Down

0 comments on commit 096454c

Please sign in to comment.