@@ -288,10 +288,10 @@ ui_distribution <- function(id, ...) {
288288 is_single_dataset = is_single_dataset_value
289289 )
290290 },
291- teal.widgets :: panel_group (
291+ bslib :: accordion (
292292 conditionalPanel(
293293 condition = paste0(" input['" , ns(" tabs" ), " '] == 'Histogram'" ),
294- teal.widgets :: panel_item (
294+ bslib :: accordion_panel (
295295 " Histogram" ,
296296 teal.widgets :: optionalSliderInputValMinMax(ns(" bins" ), " Bins" , args $ bins , ticks = FALSE , step = 1 ),
297297 shinyWidgets :: prettyRadioButtons(
@@ -306,13 +306,12 @@ ui_distribution <- function(id, ...) {
306306 ui_decorate_teal_data(
307307 ns(" d_density" ),
308308 decorators = select_decorators(args $ decorators , " histogram_plot" )
309- ),
310- collapsed = FALSE
309+ )
311310 )
312311 ),
313312 conditionalPanel(
314313 condition = paste0(" input['" , ns(" tabs" ), " '] == 'QQplot'" ),
315- teal.widgets :: panel_item (
314+ bslib :: accordion_panel (
316315 " QQ Plot" ,
317316 checkboxInput(ns(" qq_line" ), label = " Add diagonal line(s)" , TRUE ),
318317 ui_decorate_teal_data(
@@ -332,18 +331,18 @@ ui_distribution <- function(id, ...) {
332331 ),
333332 conditionalPanel(
334333 condition = paste0(" input['" , ns(" main_type" ), " '] == 'Density'" ),
335- teal.widgets :: panel_item (
334+ bslib :: accordion_panel (
336335 " Theoretical Distribution" ,
337336 teal.widgets :: optionalSelectInput(
338337 ns(" t_dist" ),
339338 tags $ div(
340- class = " teal-tooltip" ,
341339 tagList(
342340 " Distribution:" ,
343- icon(" circle-info" ),
344- tags $ span(
345- class = " tooltiptext" ,
346- " Default parameters are optimized with MASS::fitdistr function."
341+ bslib :: tooltip(
342+ icon(" circle-info" ),
343+ tags $ span(
344+ " Default parameters are optimized with MASS::fitdistr function."
345+ )
347346 )
348347 )
349348 ),
@@ -356,39 +355,39 @@ ui_distribution <- function(id, ...) {
356355 tags $ span(actionButton(ns(" params_reset" ), " Default params" )),
357356 collapsed = FALSE
358357 )
359- )
360- ),
361- teal.widgets :: panel_item(
362- " Tests " ,
363- teal.widgets :: optionalSelectInput(
364- ns( " dist_tests " ) ,
365- " Tests: " ,
366- choices = c(
367- " Shapiro-Wilk " ,
368- if (! is.null(args $ strata_var )) " t-test (two-samples, not paired) " ,
369- if (! is.null(args $ strata_var )) " one-way ANOVA " ,
370- if (! is.null(args $ strata_var )) " Fligner-Killeen " ,
371- if ( ! is.null( args $ strata_var )) " F-test " ,
372- " Kolmogorov-Smirnov (one-sample)" ,
373- " Anderson-Darling (one-sample)" ,
374- " Cramer-von Mises (one-sample) " ,
375- if ( ! is.null( args $ strata_var )) " Kolmogorov-Smirnov (two-samples) "
376- ),
377- selected = NULL
378- )
379- ),
380- teal.widgets :: panel_item(
381- " Statistics Table " ,
382- sliderInput(ns( " roundn " ), " Round to n digits " , min = 0 , max = 10 , value = 2 )
383- ),
384- teal.widgets :: panel_item(
385- title = " Plot settings " ,
386- selectInput(
387- inputId = ns( " ggtheme " ) ,
388- label = " Theme (by ggplot): " ,
389- choices = ggplot_themes ,
390- selected = args $ ggtheme ,
391- multiple = FALSE
358+ ),
359+ bslib :: accordion_panel(
360+ title = " Tests " ,
361+ teal.widgets :: optionalSelectInput(
362+ ns( " dist_tests " ),
363+ " Tests: " ,
364+ choices = c(
365+ " Shapiro-Wilk " ,
366+ if ( ! is.null( args $ strata_var )) " t-test (two-samples, not paired) " ,
367+ if (! is.null(args $ strata_var )) " one-way ANOVA " ,
368+ if (! is.null(args $ strata_var )) " Fligner-Killeen " ,
369+ if (! is.null(args $ strata_var )) " F-test " ,
370+ " Kolmogorov-Smirnov (one-sample) " ,
371+ " Anderson-Darling (one-sample)" ,
372+ " Cramer-von Mises (one-sample)" ,
373+ if ( ! is.null( args $ strata_var )) " Kolmogorov-Smirnov (two-samples) "
374+ ),
375+ selected = NULL
376+ )
377+ ),
378+ bslib :: accordion_panel(
379+ title = " Statistics Table " ,
380+ sliderInput(ns( " roundn " ), " Round to n digits " , min = 0 , max = 10 , value = 2 )
381+ ),
382+ bslib :: accordion_panel(
383+ title = " Plot settings " ,
384+ selectInput(
385+ inputId = ns( " ggtheme " ),
386+ label = " Theme (by ggplot): " ,
387+ choices = ggplot_themes ,
388+ selected = args $ ggtheme ,
389+ multiple = FALSE
390+ )
392391 )
393392 )
394393 ),
0 commit comments