|
36 | 36 | #' |
37 | 37 | #' It takes the form of `c(value, min, max)` and it is passed to the `value_min_max` |
38 | 38 | #' argument in `teal.widgets::optionalSliderInputValMinMax`. |
39 | | -#' @param decorators (`list` of `teal_transform_module`) |
40 | 39 | #' |
41 | 40 | #' @templateVar ggnames `r regression_names` |
42 | 41 | #' @template ggplot2_args_multi |
@@ -288,7 +287,7 @@ tm_a_regression <- function(label = "Regression Analysis", |
288 | 287 | } |
289 | 288 |
|
290 | 289 | # UI function for the regression module |
291 | | -ui_a_regression <- function(id, decorators, ...) { |
| 290 | +ui_a_regression <- function(id, ...) { |
292 | 291 | ns <- NS(id) |
293 | 292 | args <- list(...) |
294 | 293 | is_single_dataset_value <- teal.transform::is_single_dataset(args$regressor, args$response) |
@@ -325,37 +324,37 @@ ui_a_regression <- function(id, decorators, ...) { |
325 | 324 | conditionalPanel( |
326 | 325 | condition = "input.plot_type == 'Response vs Regressor'", |
327 | 326 | ns = ns, |
328 | | - ui_teal_transform_data(ns("d_0"), transformators = decorators[[1]]) |
| 327 | + ui_teal_transform_data(ns("d_0"), transformators = args$decorators[[1]]) |
329 | 328 | ), |
330 | 329 | conditionalPanel( |
331 | 330 | condition = "input.plot_type == 'Residuals vs Fitted'", |
332 | 331 | ns = ns, |
333 | | - ui_teal_transform_data(ns("d_1"), transformators = decorators[[1]]) |
| 332 | + ui_teal_transform_data(ns("d_1"), transformators = args$decorators[[1]]) |
334 | 333 | ), |
335 | 334 | conditionalPanel( |
336 | 335 | condition = "input.plot_type == 'Normal Q-Q'", |
337 | 336 | ns = ns, |
338 | | - ui_teal_transform_data(ns("d_2"), transformators = decorators[[1]]) |
| 337 | + ui_teal_transform_data(ns("d_2"), transformators = args$decorators[[1]]) |
339 | 338 | ), |
340 | 339 | conditionalPanel( |
341 | 340 | condition = "input.plot_type == 'Scale-Location'", |
342 | 341 | ns = ns, |
343 | | - ui_teal_transform_data(ns("d_3"), transformators = decorators[[1]]) |
| 342 | + ui_teal_transform_data(ns("d_3"), transformators = args$decorators[[1]]) |
344 | 343 | ), |
345 | 344 | conditionalPanel( |
346 | 345 | condition = "input.plot_type == 'Cook\\'s distance'", |
347 | 346 | ns = ns, |
348 | | - ui_teal_transform_data(ns("d_4"), transformators = decorators[[1]]) |
| 347 | + ui_teal_transform_data(ns("d_4"), transformators = args$decorators[[1]]) |
349 | 348 | ), |
350 | 349 | conditionalPanel( |
351 | 350 | condition = "input.plot_type == 'Residuals vs Leverage'", |
352 | 351 | ns = ns, |
353 | | - ui_teal_transform_data(ns("d_5"), transformators = decorators[[1]]) |
| 352 | + ui_teal_transform_data(ns("d_5"), transformators = args$decorators[[1]]) |
354 | 353 | ), |
355 | 354 | conditionalPanel( |
356 | 355 | condition = "input.plot_type == 'Cook\\'s dist vs Leverage'", |
357 | 356 | ns = ns, |
358 | | - ui_teal_transform_data(ns("d_6"), transformators = decorators[[1]]) |
| 357 | + ui_teal_transform_data(ns("d_6"), transformators = args$decorators[[1]]) |
359 | 358 | ), |
360 | 359 | ), |
361 | 360 | checkboxInput(ns("show_outlier"), label = "Display outlier labels", value = TRUE), |
|
0 commit comments