View source: R/plot.interactive.probmat.R
| plot.interactive.probmat | R Documentation |
HTML heatmap of pairwise conspecificity probabilities with hover details,
optionally aligned with a PNG of the tree; exportable via save_html.
Requires suggested packages plotly, base64enc, htmlwidgets.
## S3 method for class 'interactive.probmat'
plot(
x,
tree,
palette = "green",
show_tree = TRUE,
tree_width = 0.3,
width = 1400,
height = 1000,
save_html = NULL,
...
)
x |
A |
tree |
A |
palette |
|
show_tree |
Logical; render the tree to the left of the matrix. |
tree_width |
Fraction of the figure width used by the tree (0–1). |
width, height |
Figure size in pixels. |
save_html |
Optional HTML output path (self-contained). |
... |
Passed to |
Invisibly, the plotly object.
set.seed(123)
data(east10)
res <- bgmyc.singlephy(east10[[1]], mcmc = 100, burnin = 10, thinning = 10)
plot.interactive.probmat(spec.probmat(res), east10[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.