Learn R Programming

lllcrc (version 1.2)

plot.lllcrc: Plot LLLMs

Description

Generates stacked relative frequency diagrams for local log-linear or VGAM capture recapture models

Usage

"plot"(x, cont.var = "x.con.1", selection = NULL, main = "Set the main argument for the title", xlab = "x", label.offset = 0.01, text.size = 0.7, x.range = NULL, subtitle = NULL, padj.adj = -0.3, lr = 1, lr.global = NULL, ylim = NULL, ...)
"plot"(x, cont.var = "x.con.1", selection = NULL, main = "Set the main argument for the title", xlab = "x", label.offset = 0.01, text.size = 0.7, x.range = NULL, subtitle = NULL, padj.adj = -0.3, lr = 1, lr.global = NULL, ylim = NULL, ...)

Arguments

x
Output of the function for LLLMs, lllcrc, or the CRC wrapper function for VGAM, vgam.crc
cont.var
The name (in the form x.dis ... -- see format.data) of a continuous variable that will be used for the x-axis of the plot. By default, it is x.con.1, the first continuous variable
selection
See the same argument in extract.CI
main
Plot title
xlab
x-axis label
label.offset
Controls the distance between the capture-pattern labels and corresponding curves
text.size
Controls text size of capture pattern labels
x.range
The range of the primary continuous variable that is included in the plot
subtitle
An optional subtitle
padj.adj
Controls the vertical positioning of the subtitle if it is defined
lr
Has value 1 or -1; controls the left-right (or right-left) alternating pattern of the capture pattern labels
lr.global
NULL by default; if specified, it must be -1 or 1, causing all capture pattern labels to appear on the left or the right, without alternating
ylim
Optional argument of the form c(a,b), where a and b are numbers.
...
Additional parameters to be passed into plot

Value

Returns nothing, but makes a plot if you're paying attention

Details

The capture pattern relative frequencies are plotted in a stacked form, summing to 1 over each vertical cross-section. On top, the rate of missingness is plotted for the all-zero capture pattern, along with 95 percent confidence curves if a boots entry is included in x, the first argument