plotModalities: Plot the result of 'modalityTest'

Description Usage Arguments Value

View source: R/momApp_modalityTest.R

Description

Test if the moments generated by momApp come from a unimodal distribution with compact support and plot the result. The test is done by function modalityTest. Already existing test results can be passed via the argument modalities.

Usage

1
2
plotModalities(momApp, modalities = NULL,
  vars = names(init(momApp$model)), ...)

Arguments

momApp

an object of class momApp.

modalities

The result of modalityTest(momApp, ...). If modalities = NULL, function modalityTest will be called inside plotModalities.

vars

character vector with variable names. Only the test results for these variables will appear in the plot. Vector vars should be equal or a subset to names(init(momApp$model)).

...

additional arguments to modalityTest. They are only used if modalities = NULL.

Value

an object of class ggplot


CharlotteJana/pdmppoly documentation built on Sept. 4, 2019, 4:40 p.m.