plotci {drpop}R Documentation

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

Description

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

Usage

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


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)


[Package drpop version 0.0.3 Index]