Skip to contents

Produces the traceplots and the density plots of the model parameters.

Usage

# S3 method for dynamitefit
plot(x, parameters = NULL, type = NULL, responses = NULL, ...)

Arguments

x

[dynamitefit]
The model fit object.

parameters

[charecter()]\ Parameter name(s) for which the plots should be drawn. Possible options can be found with the function get_parameter_names(). The default is all parameters of a specific type for all responses, which can lead to too crowded a plot.

type

[character(1)]
Type of the parameter for which the plots should be drawn. Possible options can be found with the function get_parameter_types(). Ignored if the argument parameters is supplied.

responses

[character()]
Response(s) for which the plots should be drawn. Possible options are unique(x$priors$response). Default is all responses. Ignored if the argument parameters is supplied.

...

Not used..

Value

A ggplot object.

See also

Examples

data.table::setDTthreads(1) # For CRAN
plot(gaussian_example_fit, type = "beta")