identify_indices: Identify the indices of rows that will be labelled in a graph

View source: R/annotation_table.R

identify_indicesR Documentation

Identify the indices of rows that will be labelled in a graph

Description

Identify the indices of rows that will be labelled in a graph

Usage

identify_indices(.x, .col, .focal_value, .peak_col = "Value")

Arguments

.x

<obj> the data frame to summarize

.col

<str> the name of the column to find indices in.

.focal_value

<num> a value to focus on (e.g. the year 2020)

.peak_col

<str> the name of the column to search for its max. defaults to "Value"

Value

a tibble with “Name“, “Index“, “X Offset“, and “Y Offset“

Examples

racine_laus |>
    purrr::pluck("wisconsin") |>
    dplyr::mutate(Parsed = laus_parse_series(.data$Series)) |>
    tidyr::unnest("Parsed") |>
    dplyr::filter(.data$measure_code == 6L, Month == "January") |>
    identify_indices("Year", 2020)

higherX4Racine/hiRx documentation built on Nov. 18, 2024, 10:20 a.m.