Learn R Programming

exactamente (version 0.1.1)

plot.regboot: Plot Method for 'regboot' Class

Description

Creates a plot of the density estimates of the bootstrap sample statistics returned from the reg_bootstrap function.

Usage

# S3 method for regboot
plot(x, title = "Regular Bootstrap Distribution", ...)

Value

A ggplot object showing the density estimates of the bootstrap sample statistic.

Arguments

x

An object of class 'regboot', usually the output of the reg_bootstrap function.

title

A plot title. Default is "Regular Bootstrap Distribution".

...

Additional parameters (currently ignored).

See Also

reg_bootstrap, summary.regboot

Examples

Run this code
set.seed(123)
data <- rnorm(5)
result <- reg_bootstrap(data)
plot(result)

Run the code above in your browser using DataLab