result_graphs: Result Graphs

Description Usage Arguments

View source: R/nof1gen.summary.R

Description

result_graphs allows the user to create a specific table or graph for an outcome. Possible graphs include: kernel density plot, odds ratio plot, and probability barplot.

Usage

1
2
3
result_graphs(graph, model_result, multiple = TRUE,
  outcome_name = NULL, result.name = NULL, title = NULL, bins = 30,
  x_min = NULL, x_max = NULL, level = 0.95)

Arguments

graph

A string which specifies the specific table or graph to construct. Options include: kernel_density, odds_ratio_plot, probability_barplot.

model_result

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

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

...

Specific paramaters depending on table or graph to constuct #' @return Returns one of the following graphs: kernel density plot, odds ratio plot, and probability barplot for the model data.


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