From 096454c7b081a9be0e170629f0dbca7c7623dd0e Mon Sep 17 00:00:00 2001 From: "james.balamuta@gmail.com" Date: Fri, 1 Nov 2024 09:45:28 -0700 Subject: [PATCH] patch(regression_plot): Fix `df` not being present by generating the data in function. --- index.qmd | 7 +++++-- slides/lecture-01.qmd | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/index.qmd b/index.qmd index 290935c..bd34a2d 100644 --- a/index.qmd +++ b/index.qmd @@ -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 diff --git a/slides/lecture-01.qmd b/slides/lecture-01.qmd index cfbc228..a1e2863 100644 --- a/slides/lecture-01.qmd +++ b/slides/lecture-01.qmd @@ -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(