Usage
distplot(x, type = c("poisson", "binomial", "nbinomial"), size = NULL, lambda = NULL, legend = TRUE, xlim = NULL, ylim = NULL, conf_int = TRUE, conf_level = 0.95, main = NULL, xlab = "Number of occurrences", ylab = "Distribution metameter", gp = gpar(cex = 0.8), lwd=2, gp_conf_int = gpar(lty = 2), name = "distplot", newpage = TRUE, pop =TRUE, return_grob = FALSE, ...)
Arguments
x
either a vector of counts, a 1-way table of frequencies of
counts or a data frame or matrix with frequencies in the first
column and the corresponding counts in the second column.
type
a character string indicating the distribution.
size
the size argument for the binomial and negative binomial
distribution.
If set to NULL
and type
is "binomial"
, then
size
is taken to be the maximum count.
If set to NULL
and type
is "nbinomial"
, then
size
is estimated from the data.
lambda
parameter of the poisson distribution.
If type is "poisson"
and lambda
is specified a leveled
poissonness plot is produced.
legend
logical. Should a legend be plotted?
xlim
limits for the x axis.
ylim
limits for the y axis.
conf_int
logical. Should confidence intervals be plotted?
conf_level
confidence level for confidence intervals.
main
a title for the plot.
xlab
a label for the x axis.
ylab
a label for the y axis.
gp
a "gpar"
object controlling the grid graphical
parameters of the points.
gp_conf_int
a "gpar"
object controlling the grid graphical
parameters of the confidence intervals.
lwd
line width for the fitted line
name
name of the plotting viewport.
pop
logical. Should the viewport created be popped?
return_grob
logical. Should a snapshot of the display be
returned as a grid grob?