Skip to content

Commit 096454c

Browse files
committed
patch(regression_plot): Fix df not being present by generating the data in function.
1 parent dc1a21c commit 096454c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

index.qmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ format:
99

1010
## Welcome to the Future of Data Science Education
1111

12-
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.
12+
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/).
1313

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

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

18-
For more on the Quarto WebAssembly backend, see the [official documentation](https://r-wasm.github.io/quarto-live/).
18+
In interactive lab form, we have:
19+
20+
- [Exploring Palmer Penguins](tutorials/data-manuipulation.qmd)
21+
1922

2023
## What's Inside
2124

slides/lecture-01.qmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ regression_plot(beta_0, beta_1)
124124
#| define:
125125
#| - regression_plot
126126
regression_plot <- function(beta_0, beta_1) {
127+
# Figure out why scope changed between Live august and now.
128+
set.seed(123)
129+
x <- 1:100
130+
y <- 2 * x + 1 + rnorm(100, mean = 0, sd = 3)
131+
df <- data.frame(x = x, y = y)
127132
128133
# Create scatter plot
129134
plot(

0 commit comments

Comments
 (0)