show_data: show_data

Description Usage Arguments Value Examples

Description

This function has to be set in the Server part of a shiny application it adds the load data windows. show_dataUI function has to be set in the UI part.

Usage

1
2
show_data(input, output, session, variable = NULL,
  variable_name = NULL, useggplot = FALSE)

Arguments

input

Not a real parameter, should not be set manually. Done by callModule automatically.

output

Not a real parameter, should not be set manually. Done by callModule automatically.

session

Not a real parameter, should not be set manually. Done by callModule automatically.

variable

Reactive numeric vector

variable_name

Reactive character

useggplot

Boolean if use ggplot or basic hist function

Value

Server logic

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# In UI :
show_dataUI(id = "mod1")
# In Server
data_module1 <- callModule(
  module = show_data,
  id = "mod3",
  variable = variable,
  variable_name = variable_name
)

## End(Not run)

ardata-fr/Shiny-Modules-Tutorials documentation built on June 27, 2019, 4:20 p.m.