Skip to contents

This function creates a plot of bootstrapped statistics using ggplot2.

Usage

bootstrap_plot(data, statistics = NULL, bootstat = NULL, type = "mean", ...)

Arguments

data

A data frame containing the data to be plotted.

statistics

An optional vector of statistics to include in the plot.

bootstat

An optional vector of bootstrapped statistics to include in the plot.

type

The type of plot to create, either "mean" (default) or "box".

...

Additional arguments passed to ggplot2.

Value

A ggplot2 object representing the plot of summary statistics.