Description Usage Arguments Examples
Passes the embedding matrix to ggplot with column names PHATE1 and PHATE2
1 2 |
data |
A fitted PHATE object |
... |
Arguments for ggplot() |
1 2 3 4 5 6 7 8 9 10 | if (reticulate::py_module_available("phate") && require(ggplot2)) {
# data(tree.data)
# We use a smaller tree to make examples run faster
data(tree.data.small)
phate.tree <- phate(tree.data.small$data)
ggplot(phate.tree, aes(x=PHATE1, y=PHATE2, color=tree.data.small$branches)) +
geom_point()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.