xlim_duration {movementsync}R Documentation

Get a ggplot2 xlim object based on duration data

Description

Get a ggplot2 xlim object based on duration data

Usage

xlim_duration(object, expr = .data$Tier == "Form")

Arguments

object

Duration object.

expr

R expression to subset rows.

Value

a 'Duration' object.

Examples


r<-get_recording("NIR_ABh_Puriya", fps=25)
m <- get_metre_data(r)
d <- get_duration_annotation_data(r)
autoplot(m)
autoplot(m) + autolayer(d)
v <- get_raw_view(r, "Central", "", "Sitar")
autoplot(v, columns = c("LEar_x", "LEar_y")) + autolayer(d)
autoplot(v, columns = c("LEar_x", "LEar_y")) +
xlim_duration(d, expr = Tier == "FORM" & substr(Comments, 1, 1) == "J") +
autolayer(d, expr = Tier == "FORM" & substr(Comments, 1, 1) == "J")


[Package movementsync version 0.1.4 Index]