plot_velocity_arrows | R Documentation |
plot_velocity_arrows
plot_velocity_arrows( velocity_dt, p = NULL, id_to_plot = NULL, angle_as_color = TRUE, background_color = "lightgray" )
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. |
ggplot of arrows indicating position in tall_var line a to tall_var line b.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.