plot_velocity_arrows: plot_velocity_arrows

plot_velocity_arrowsR Documentation

plot_velocity_arrows

Description

plot_velocity_arrows

Usage

plot_velocity_arrows(
  velocity_dt,
  p = NULL,
  id_to_plot = NULL,
  angle_as_color = TRUE,
  background_color = "lightgray"
)

Arguments

velocity_dt

data.table with angle and distance info.

p

an existing ggplot to overlay images onto. Default of NULL starts a new plot.

id_to_plot

character. ids in tsne_dt$id. Default of NULL causes all ids to be used.

angle_as_color

if TRUE, a rainbow like scale is applied to angle.

background_color

character. color to use when plotting background points.

Value

ggplot of arrows indicating position in tall_var line a to tall_var line b.

Examples

data("tsne_dt")
vel_dt = prep_velocity(tsne_dt,
    unique(tsne_dt$tall_var)[2], unique(tsne_dt$tall_var)[3])
plot_velocity_arrows(vel_dt)

jrboyd/seqtsne documentation built on Nov. 5, 2022, 6:37 a.m.