gg_highlightDiagonals: Internal helper to add the diagonal highlighting to a ggplot

View source: R/plot_density_helpers.R

gg_highlightDiagonalsR Documentation

Internal helper to add the diagonal highlighting to a ggplot

Description

Internal helper function to highlight diagonals in a density matrix. The function takes an existing ggplot object, adds the diagonal highlighting and returns the edited ggplot object again.

Usage

gg_highlightDiagonals(gg, dat, dat_highlightDiagonals)

Arguments

gg

Existing ggplot object to which the diagonal highlighting should be added.

dat

Dataset with columns period and age and the main variable specified through argument y_var.

dat_highlightDiagonals

Dataset created by create_highlightDiagonalData to highlight specific diagonals in a density matrix.


APCtools documentation built on Jan. 14, 2023, 1:15 a.m.