plot_two_groups {ThermalSampleR} | R Documentation |
Plot output from boot_two_groups
Description
Plot output from boot_two.
Arguments
x |
Output from boot_two_groups function. Defaults to 'sims'. |
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) the precision of the estimates for the difference in CTmin between the two selected groups across sample sizes; (b) the 95
Examples
sims <- boot_two(data = coreid_data,
groups_col = col,
response = response,
group1 = "Catorhintha schaffneri_APM",
group2 = "Catorhintha schaffneri_NPM",
n_max = 30,
iter = 99)
plots <- plot_two_groups(x = sims,
n_min = 3,
n_max = 30,
colour_exp = "gold",
colour_extrap = "darkgreen",
legend.position = "right")
[Package ThermalSampleR version 0.1.2 Index]