plot_buds_trajectory: Plot data trajectory in 2 or3D

Description Usage Arguments Value

Description

Plot 2 or 3D representations of the data with PCoA of t-SNE, together with posterior data trajectories (paths) computed with BUDS.

Usage

1
2
3
plot_buds_trajectory(budsParams, Y, eigs = NULL, sample_data = NULL,
  covariate_name = "covariate", path_col = "#2171B5", nPaths = 50,
  nCenters = 50)

Arguments

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.

Value

A ggplot2 object.


nlhuong/buds documentation built on May 17, 2019, 3:13 a.m.