Description Usage Arguments Value Author(s) See Also Examples
Plots the probabilities of a specified db distributon.
1 2 |
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 |
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
.
Rolf Turner r.turner@auckland.ac.nz
1 2 3 4 5 6 7 8 9 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.