prevalence_plot: Plastic prevalence probability plot

Description Usage Arguments See Also Examples

View source: R/plastic_prev_plots.R

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

1
2
3
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 plastic.ci.

lower_ci

numeric vector, containing values for lower confidence interval and with the same length as sample_sizes.

upper_ci

numeric vector, containing values for upper confidence interval and with the same length as sample_sizes.

xlab

string, label of x axis.

ylab

string, label of y axis.

colobs

color of observations.

colci

color of confidence intervals.

See Also

plastic.ci, plastic.prev.prob

Examples

1
2
3
4
5
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)

placer documentation built on Sept. 16, 2019, 5:02 p.m.