ps_lines_highlight: ps_lines_highlight

View source: R/mod_plot_functions_highlight_lines.R

ps_lines_highlightR Documentation

ps_lines_highlight

Description

Given a table of lines and a line_id, add a new column, line_type, with values:

  • "identical": Matching line_id

  • "related": Line represents a sub- or super-streak, but is not identical

  • "season": Line is from same year and team, but not a sub- or super-streak

  • "base": Unrelated line

Usage

ps_lines_highlight(
  lines,
  lzy_concordances,
  lzy_lines_to_streaks,
  line_id = NULL
)

Arguments

lines

Table of lines

lzy_concordances

Lazy concordances table

lzy_lines_to_streaks

Lazy lines_to_streaks table

line_id

LineID

Details

If line_id is NULL or omitted, all values will be "base"

Value

Lines with added line_type column.


tor-gu/streakexplorer documentation built on Aug. 2, 2022, 8:22 p.m.