- This Shiny app allows users to interactively build linear models.
- It uses the
treesdataset (Girth vs Volume). - Users can brush points on the plot to select data for modeling.
2025-11-18
trees dataset (Girth vs Volume).```r model <- reactive({ brushed_data <- brushedPoints(trees, input$brush1, xvar = “Girth”, yvar = “Volume”) if(nrow(brushed_data) < 2) return(NULL) lm(Volume ~ Girth, data = brushed_data) })