Description Usage Arguments See Also Examples
View source: R/plastic_prev_plots.R
Plot to show the plastic prevalence probability in seabird's nests as a function of different sample sizes and their corresponding confidence intervals.
| 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")
 | 
| 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. | 
| 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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.