View source: R/annotation_table.R
identify_indices | R Documentation |
Identify the indices of rows that will be labelled in a graph
identify_indices(.x, .col, .focal_value, .peak_col = "Value")
.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" |
a tibble with “Name“, “Index“, “X Offset“, and “Y Offset“
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.