raw_graphs: Raw Graphs and Tables

Description Usage Arguments Value Examples

View source: R/nof1gen.summary.R

Description

raw_graphs allows the user to create a specific table or graph for an outcome. Possible graphs include: time_series_plot, frequency_plot, stacked_percent_barplot, and raw_table.

Usage

1
2
3
raw_graphs(graph, result, multiple = FALSE, outcome_name = NULL,
  date_start = NULL, date_end = NULL, date.format = "%Y-%m-%d",
  title = NULL, bins = 10)

Arguments

graph

A string which specifies the specific table or graph to construct. Options include: time_series_plot, frequency_plot, stacked_percent_barplot, and raw_table.

multiple

A boolean that indicates if the model_result input has multiple possible outcome. In other words, was model_result input created from wrap_all or wrap_single? The default is FALSE meaning we only have one outcome in the model_result input.

outcome_name

A string that indicates the name of the outcome we wish to graph

model_result

The analysis we want to make the graphs for. It is the output of wrap_single

...

Specific paramaters depending on table or graph to constuct

Value

Returns one of the following graphs: time series plot, frequency plot, stacked percent barplot, or raw table for the inputed data.

Examples

1
2
raw_graphs("raw_table", all_result_afib, TRUE, "afib_episode_yn")
raw_graphs("frequency_plot", result_afib)

arisp99/nof1gen documentation built on May 19, 2019, 9:37 p.m.