highlight_key_sequence: Highlight key sequence

View source: R/plot.R

highlight_key_sequenceR Documentation

Highlight key sequence

Description

Highlight key sequence

Usage

highlight_key_sequence(
  data,
  key_sequence,
  sequence_names = NULL,
  new_color = "lightblue",
  keep_color = "lightgrey",
  remove_color = NULL
)

Arguments

data

data with key coordinates, e.g. from keys_chords

key_sequence

list of vector with key numbers, note that they can be greater than 12

sequence_names

names of each element in key_sequence

new_color

highlight color for new keys (NULL for disable)

keep_color

highlight color for keys kept at same position (NULL for disable)

remove_color

highlight color for removed keys (NULL for disable)

Value

A new dataset with two new columns: seq_no, that can be used in e.g. plotting, and seq_name that is either seq_no of sequence_names if provided.


mikldk/pichor documentation built on Jan. 28, 2023, 5 a.m.