Internal helper to create a dataset for ggplot2 to highlight diagonals
Source:R/plot_density_helpers.R
create_highlightDiagonalData.Rd
Internal helper function to create a dataset for ggplot2
that can
be used to highlight specific diagonals in a density matrix.
Arguments
- dat
Dataset with columns
period
andage
and the main variable specified through argumenty_var
.- highlight_diagonals
Optional internal parameter which is only specified when
plot_density
is called from withinplot_densityMatrix
. Seeplot_densityMatrix
for details.