plotDb {dbd} | R Documentation |
Plot a db distribution.
Description
Plots the probabilities of a specified db distributon.
Usage
plotDb(alpha, beta, ntop, zeta, ..., plot = TRUE, tikx = NULL, xlim = NULL,
ylim = NULL, xlab = NULL, ylab = NULL, main = "")
Arguments
alpha |
See |
beta |
See |
ntop |
See |
zeta |
See |
... |
Extra arguments that are passed to the |
plot |
Logical scalar; should a plot be produced (or should the function simply return a data frame consisting of the relevant values)? |
tikx |
(Optional) vector of locations of the tick marks on the |
xlim |
The |
ylim |
The |
xlab |
A label for the |
ylab |
A label for the |
main |
An overall title for the plot. (See |
Value
A data frame with numeric columns x
and p
. The
x
column consists of the integers from 0 to ntop
or from 1 to ntop
depending on whether zeta
is TRUE
. The p
column consists of the
appropriate probabilities of the x
values, calculated by
ddb()
. The value is returned invisibly. A plot
is produced as a side-effect if plot
is TRUE
.
Author(s)
Rolf Turner r.turner@auckland.ac.nz
See Also
Examples
plotDb(2,3,14,FALSE,main="An exempular plot")
plotDb(2,3,14,TRUE,col="red",xlab="count",main="A communist plot")
plotDb(0.1,3,14,TRUE,col="blue",main="A royal plot")
plotDb(0.1,0.3,14,TRUE,col="green",main="An ecological plot")
plotDb(2,3,14,FALSE,xlim=c(0,15))
plotDb(2,3,14,FALSE,xlim=c(0,15),tikx=3*(0:5))
par(mfrow=c(2,1))
plotDb(2,2,5,FALSE,main=bquote(paste(alpha == 2,", ",beta == 2)),col="red")
plotDb(-2,-2,5,FALSE,main=bquote(paste(alpha == -2,", ",beta == -2)),col="blue")