manhattan_plot_and_table: Interactive manhattan plot and table: Server

Description Usage Arguments Value See Also Examples

View source: R/mod_manhattan_and_table.R

Description

Draw an interactive manhattan plot and table that can be used to send selections for codes to the rest of the app.

Usage

1
2
3
4
5
6
7
8
9
manhattan_plot_and_table(
  input,
  output,
  session,
  results_data,
  selected_codes,
  colors,
  action_object = NULL
)

Arguments

input, output, session

Auto-filled by callModule | ignore

results_data

Dataframe containing the results of the phewas study. Needs columns p_val, id, category(along with accompanying color), tooltip.

selected_codes

A reactive variable containing array of code ids that are currently selected in the app.

colors

A list of CSS-valid colors to paint interface in. Needs light_grey, med_grey, dark_grey, light_blue.

action_object

A reactiveVal that will be updated by the module upon selection. If nothing is passed then no action buttons (E.g. "Send to server") will be shown. Useful for building apps with just the manhattan plot.

Value

Server component of interactive manhattan plot. Returns type-payload list with the type "selection" to the passed action_object for updating app state.

See Also

manhattan_plot_and_table

Examples

1
callModule(manhattan_plot_and_table,  'my_mod', selected_codes, app_state$currently_selected)

tbilab/meToolkit documentation built on June 23, 2020, 9:55 a.m.