Description Usage Arguments Author(s) Examples
Make a bubble plot of a lineage-specific transition matrix of a tree model.
1 2 3 4 |
x |
An object of type |
i |
An integer identifying which element of tm[["ls.model"]] to plot. |
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 | exampleArchive <- system.file("extdata", "examples.zip", package="rphast")
filename <- "rev.mod"
unzip(exampleArchive, filename)
tm <- read.tm(filename)
tm <- add.ls.mod(tm, branch="mm9", subst.mod="HKY85")
plot.lsmodel.tm(tm, 1)
tm$ls.model$backgd <- c(0.9, 0.05, 0.03, 0.02)
plot.lsmodel.tm(tm, 1)
plot.rate.matrix(tm[["rate.matrix"]],
eq.freq=tm[["backgd"]],
filled=FALSE,
alphabet=tm[["alphabet"]])
unlink(filename)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.