prevalence_plot {placer} | R Documentation |
Plastic prevalence probability plot
Description
Plot to show the plastic prevalence probability in seabird's nests as a function of different sample sizes and their corresponding confidence intervals.
Usage
prevalence_plot(prev_prob_mat, sample_sizes, lower_ci, upper_ci,
xlab = "Sample size", ylab = "Plastic prevalence probability",
colobs = "grey", colci = "#64B5F6")
Arguments
prev_prob_mat |
numeric matrix, containing plastic prevalence probability with dimensions (samples_size, bootstrap_replicates). |
sample_sizes |
numeric vector, containing sequence of sample size used to
estimate the confidence intervals |
lower_ci |
numeric vector, containing values for lower confidence interval
and with the same length as |
upper_ci |
numeric vector, containing values for upper confidence interval
and with the same length as |
xlab |
string, label of x axis. |
ylab |
string, label of y axis. |
colobs |
color of observations. |
colci |
color of confidence intervals. |
See Also
Examples
binomtest <- plastic.ci(rbinom(1000,1,0.5), 30, 100)
prevalence_plot(binomtest$prevprob,
binomtest$cidtf$N,
binomtest$cidtf$lower_ci,
binomtest$cidtf$upper_ci)
[Package placer version 0.1.3 Index]