Description Usage Arguments Value
Plot 2 or 3D representations of the data with PCoA of t-SNE, together with posterior data trajectories (paths) computed with BUDS.
1 2 3 | plot_buds_trajectory(budsParams, Y, eigs = NULL, sample_data = NULL,
covariate_name = "covariate", path_col = "#2171B5", nPaths = 50,
nCenters = 50)
|
budsParams |
A list of parameters extracted from BUDS stanfit object. |
Y |
A data frame with 2D representation of the data |
eigs |
[Optional] A vector of eigenvalues corresponding to columns of Y. |
sample_data |
[Optional] A data frame with sample data. |
covariate_name |
[Optional] A charcter string for the column of sample_data to use for coloring points. |
path_col |
[Optional] A charcter string for the color of the posterior paths. Default is "#2171B5". |
nPaths |
[Optional] An integer for number of posterior paths to include. Default is 50. |
nCenters |
[Optional] An integer for number of data points to use for the highlighted "mode-path". Default is 50. |
A ggplot2 object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.