plot_one_group {ThermalSampleR} | R Documentation |
Plot output from boot_sample
Description
Plot output from boot_one.
Arguments
x |
Output from boot_one function. |
n_max |
Numeric. Maximum sample size to extrapolate simulations. |
n_min |
Numeric. Minimum sample size to extrapolate simulations. Defaults to 3. |
colour_exp |
Colour of the experimental data. Defaults to "blue". |
colour_extrap |
Colour of the extrapolated data. Defaults to "red". |
legend.position |
Position of the legend. Defaults to "top". Can be "bottom", "left", "right", or "none". |
alpha_val |
Change the degree of shading of the graphs. Default is 0.2. |
ggtheme |
The theme for the ggplot created. See ggplot2 themes for options. Default set to theme_classic(). |
Value
Two plots; (a) precision of the CTmin estimate across experimental and extrapolated sample sizes; (b) the sampling distribution (range of plausible CTmin values) across experimental and extrapolated sample sizes.
Examples
sims <- boot_one(coreid_data,
groups_col = col,
groups_which = "Catorhintha schaffneri_APM",
n_max = 30,
response = response)
plot_one_group(x = sims,
n_min = 3,
n_max = 15,
colour_exp = "darkblue",
colour_extrap = "green",
legend.position = "right")
[Package ThermalSampleR version 0.1.2 Index]