gradio: Radio button group

Description Usage Arguments Value Note

Description

A basic radio button group. Specify the labels through items. The main value is the label or index.

Usage

1
2
3
4
5
  gradio(items, selected = 1, horizontal = TRUE,
    handler = NULL, action = NULL, container = NULL, ...,
    width = NULL, height = NULL, ext.args = NULL, flex = 1,
    label.width = 10 + 10 * max(nchar(items)),
    columns = ifelse(horizontal, length(items), 1))

Arguments

items

Vector of items to choose one from.

selected

index of initially selected item

horizontal

logical. Horizontal or vertical layout. (See also columns)

columns

Can be used to override horizontal TRUE or FALSE

Value

a GRadio reference class object

Note

the [<- method (to change the labels) is not implemented. The radio labels look better in horizontal box containers than vertical ones.


jverzani/gWidgetsWWW2.rapache documentation built on May 20, 2019, 5:19 a.m.