@@ -5,18 +5,18 @@ tm_g_bivariate.picks <- function(label = "Bivariate Plots",
55 variables(
66 choices = tidyselect :: where(is.numeric ) |
77 teal.transform :: is_categorical(min.len = 2 , max.len = 10 ),
8- selected = 1
8+ selected = 1L
99 ),
10- values(selected = tidyselect :: everything(), multiple = TRUE )
10+ values()
1111 ),
1212 y = picks(
1313 datasets(),
1414 variables(
1515 choices = tidyselect :: where(is.numeric ) |
1616 teal.transform :: is_categorical(min.len = 2 , max.len = 10 ),
17- selected = 2
17+ selected = 2L
1818 ),
19- values(selected = tidyselect :: everything(), multiple = TRUE )
19+ values()
2020 ),
2121 row_facet = NULL ,
2222 col_facet = NULL ,
@@ -151,11 +151,11 @@ ui_g_bivariate.picks <- function(id,
151151 encoding = shiny :: tagList(
152152 teal :: teal_nav_item(
153153 label = tags $ strong(" X variable" ),
154- teal.transform :: picks_ui(id = ns(" x" ), spec = x )
154+ teal.transform :: picks_ui(id = ns(" x" ), picks = x )
155155 ),
156156 teal :: teal_nav_item(
157157 label = tags $ strong(" Y variable" ),
158- teal.transform :: picks_ui(id = ns(" y" ), spec = y )
158+ teal.transform :: picks_ui(id = ns(" y" ), picks = y )
159159 ),
160160 conditionalPanel(
161161 condition =
@@ -176,7 +176,7 @@ ui_g_bivariate.picks <- function(id,
176176 teal :: teal_nav_item(
177177 tags $ div(
178178 tags $ strong(" Row facetting variable" ),
179- teal.transform :: picks_ui(id = ns(" row_facet" ), spec = row_facet ),
179+ teal.transform :: picks_ui(id = ns(" row_facet" ), picks = row_facet ),
180180 checkboxInput(ns(" free_x_scales" ), " free x scales" , value = free_x_scales )
181181 )
182182 )
@@ -185,7 +185,7 @@ ui_g_bivariate.picks <- function(id,
185185 teal :: teal_nav_item(
186186 tags $ div(
187187 tags $ strong(" Column facetting variable" ),
188- teal.transform :: picks_ui(id = ns(" col_facet" ), spec = col_facet ),
188+ teal.transform :: picks_ui(id = ns(" col_facet" ), picks = col_facet ),
189189 checkboxInput(ns(" free_y_scales" ), " free y scales" , value = free_y_scales )
190190 )
191191 )
@@ -199,11 +199,11 @@ ui_g_bivariate.picks <- function(id,
199199 conditionalPanel(
200200 condition = paste0(" input['" , ns(" coloring" ), " ']" ),
201201 tags $ div(
202- teal.transform :: picks_ui(id = ns(" color" ), spec = color ), # label = "Outline color by variable"
203- teal.transform :: picks_ui(id = ns(" fill" ), spec = fill ), # label = "Outline color by variable"
202+ teal.transform :: picks_ui(id = ns(" color" ), picks = color ), # label = "Outline color by variable"
203+ teal.transform :: picks_ui(id = ns(" fill" ), picks = fill ), # label = "Outline color by variable"
204204 tags $ div(
205205 id = ns(" size_settings" ),
206- teal.transform :: picks_ui(id = ns(" size" ), spec = size ) # label = "Size of points by variable (only if x and y are numeric)"
206+ teal.transform :: picks_ui(id = ns(" size" ), picks = size ) # label = "Size of points by variable (only if x and y are numeric)"
207207 )
208208 )
209209 )
@@ -271,7 +271,7 @@ srv_g_bivariate.picks <- function(id,
271271
272272 ns <- session $ ns
273273 selectors <- teal.transform :: picks_srv(
274- spec = list (
274+ picks = list (
275275 x = x ,
276276 y = y ,
277277 row_facet = row_facet ,
0 commit comments