bayesplot (version 1.11.1)

available_ppc: Get or view the names of available plotting or data functions

Description

Get or view the names of available plotting or data functions

Usage

available_ppc(pattern = NULL, fixed = FALSE, invert = FALSE, plots_only = TRUE)

available_ppd(pattern = NULL, fixed = FALSE, invert = FALSE, plots_only = TRUE)

available_mcmc( pattern = NULL, fixed = FALSE, invert = FALSE, plots_only = TRUE )

Value

A possibly empty character vector of function names with several additional attributes (for use by a custom print method). If pattern

is missing then the returned object contains the names of all available plotting functions in the MCMC, PPC, or PPD module, depending on which function is called. If pattern is specified then a subset of function names is returned.

Arguments

pattern, fixed, invert

Passed to base::grep().

plots_only

If TRUE (the default) only plotting functions are searched for. If FALSE then functions that return data for plotting (functions ending in _data()) are also included.

Examples

Run this code
available_mcmc()
available_mcmc("nuts")
available_mcmc("rhat|neff")

available_ppc()
available_ppc("grouped")
available_ppc("grouped", invert = TRUE)

available_ppd()
available_ppd("grouped")

# can also see which functions that return data are available
available_ppc(plots_only = FALSE)

# only show the _data functions
available_ppc("_data", plots_only = FALSE)
available_ppd("_data", plots_only = FALSE)
available_mcmc("_data", plots_only = FALSE)

Run the code above in your browser using DataCamp Workspace