plotci: Plot estimated confidence interval of total population size...

Description Usage Arguments Value References Examples

View source: R/plotci.R

Description

Plot estimated confidence interval of total population size from object of class popsize or popsize_cond.

Usage

1
plotci(object, tsize = 12, ...)

Arguments

object

An object of class popsize or popsize_cond.

tsize

The text size for the plots.

...

Any extra arguments passed into the function.

Value

A ggplot object fig with population size estimates and the 95% confidence intervals.

References

H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016.

Examples

1
2
3
4
5
6
7
8
data = simuldata(n = 10000, l = 1)$data_xstar

p = popsize(data = data, funcname = c("logit", "gam"))
plotci(p)

data = simuldata(n = 10000, l = 1, categorical = TRUE)$data_xstar
p = popsize_cond(data = data, condvar = 'catcov')
plotci(p)

drpop documentation built on Nov. 6, 2021, 1:06 a.m.