Skip to contents

This function plots the calculated asynchronies of instruments and labels these by instruments.

Usage

plot_by_beat(
  df = NULL,
  instr = NULL,
  beat = NULL,
  virtual = NULL,
  pcols = 1,
  griddeviations = FALSE,
  boxplot = FALSE,
  colour = "lightblue",
  colourpalette = "Set2",
  pointsize = 1
)

Arguments

df

data frame to be processed, where the minimal requirements are: (1) two or more instruments (`instr`), (2) beat sub-division (`beat`), and (3) reference timing (`virtual`), which can be either isochronous OR mean times, possibly created by [add_isobeat()]. See vignette("minimal-representation", package = "onsetsync").

instr

Instrument name to be processed

beat

Variable name where the beats are

virtual

Variable name where the virtual beats are

pcols

Number of columns for multiple plots (optional)

griddeviations

Add deviation from the virtual beats (optional)

boxplot

Do the graphics by boxplot (optional)

colour

colour for the boxplot (optional)

colourpalette

colors for dots in the timeline, use 'grey' for bw (optional)

pointsize

size of the dots (defaults 1)

Value

Graphic output