Description Usage Arguments Author(s) Examples
Make a bubble plot of the transition matrix for a tree model.
1 2 3 4 |
x |
An object of type |
show.eq.freq |
If |
max.cex |
A scaling factor which determines the size of the largest circle |
eq.freq.max.cex |
A scaling factor which determines the size of the largest circle in the equilibrium frequencies. |
alphabet |
A character vector representing the state names for
each row/column of the matrix. Can either be a vector of size
|
col |
If |
eq.freq.col |
Should be vector of same length as eq.freq, though values will be recycled. Values in the vector indicate colors to draw the equilibrium frequency bubbles. |
filled |
If |
add |
If |
... |
Further arguments to be passed to |
Melissa J. Hubisz
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | exampleArchive <- system.file("extdata", "examples.zip", package="rphast")
filename <- "rev.mod"
unzip(exampleArchive, filename)
tm <- read.tm(filename)
plot(tm)
plot(tm, show.eq.freq=FALSE)
plot(tm, max.cex=20, eq.freq.max.cex=1,
col=matrix(1:16, nrow=4),
eq.freq.col=c("red", "green"),
filled=TRUE, add=TRUE)
plot.rate.matrix(tm[["rate.matrix"]],
eq.freq=tm[["backgd"]],
filled=FALSE)
plot.rate.matrix(tm[["rate.matrix"]],
eq.freq=tm[["backgd"]],
filled=TRUE, add=TRUE)
unlink(filename)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.