plot_velocity_bins: Title

View source: R/functions_velocity.R

plot_velocity_binsR Documentation

Title

Description

Title

Usage

plot_velocity_bins(velocity_dt, bins = 36, bin_FUN = sum)

Arguments

velocity_dt

data.table with angle and distance info.

bins

number of bins to use when summarizing changes.

bin_FUN

function to apply per bin to summarize. will be passed a numeric vector and must return single value. Suggested methods are length, sum, mean, and median.

Value

a ggplot with a polar coordinate barplot.

Examples

data("tsne_dt")
vel_dt = prep_velocity(
    tsne_dt,
    unique(tsne_dt$tall_var)[1],
    unique(tsne_dt$tall_var)[2]
    )
plot_velocity_bins(vel_dt, bins = 18, bin_FUN = sum)
plot_velocity_bins(vel_dt, bins = 8, bin_FUN = median)

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