Learn R Programming

descsuppRplots (version 1.0)

suggestPlot: Function suggesting a default plot for a given parameter in a descriptive table

Description

The plot suggestion is based on the test that was used for that variable.

Usage

suggestPlot(ltest)

Value

tibble with columns plotfun an args where plotfun is a string with the name of the function to be called to generate the plot and args is a list of additional (besides the data) arguments

Arguments

ltest

character vector of tests. This normally filled by buildDescrTbl which in turn usually uses the method element of the test result.

Author

Dr. Andreas Leha

Details

The default choice is taken from plotDescTbl_options$plotfun_defaults with the current associations.

If no test was performed than numeric variables are treated as if tested via t-tests and non-numeric variables as if tested via Fisher test.

Examples

Run this code
suggestPlot("Fisher's Exact Test for Count Data")

suggestPlot("foobar")

Run the code above in your browser using DataLab