View source: R/annotation_table.R
annotation_table | R Documentation |
Create a data frame for putting labels on a graph.
annotation_table(.x, .col, .focal_value, .group_col)
.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) |
.group_col |
<str> the name of the variable to find indices within |
a data frame with fields “Name“, “Measure“, “Value“, and “Label“
racine_laus |>
purrr::pluck("wisconsin") |>
dplyr::mutate(Parsed = list(laus_parse_series(.data$Series))) |>
tidyr::unnest("Parsed") |>
dplyr::select("measure_code", "Year", "Month", "Value") |>
dplyr::filter(.data$Month == "January") |>
annotation_table("Year", 2020, "measure_code")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.