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.5), name = "distplot", newpage = TRUE, pop = TRUE, ...)
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 distribution, only
required if type
is "binomial"
.
If set to NULL
, size
is taken to be the maximum count.
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.
name
name of the plotting viewport.
pop
logical. Should the viewport created be popped?