Skip to contents

Visualise random splices

Usage

visualise_sample_splices(
  splicing_df,
  splicing_list,
  jv,
  overlay = TRUE,
  avoid_splice_list = list(),
  unstack = FALSE
)

Arguments

splicing_df

Splice object.

splicing_list

a list of Splice objects.

jv

JoinedView object.

overlay

overlay the segments for a density plot?

avoid_splice_list

list of Splice objects that determine times not to sample.

unstack

overlay segments on top of each other? (default is FALSE).

Value

a ggplot object.

Examples

r <- get_sample_recording()
fv_list <- get_filtered_views(r, data_points = 'Nose', n = 41, p = 3)
jv <- get_joined_view(fv_list)
splicing_df <- splice_time(list(a = c(0, 5), b = c(10, 15)))
splicing_list <- sample_offset_splice(splicing_df, jv, num_splices = 20)
#> Accepted splices: 13
#> Accepted splices: 28
visualise_sample_splices(splicing_df, splicing_list, jv)