Internal helper to create a dataset for ggplot2 to highlight diagonals
Source:R/plot_density_helpers.R
create_highlightDiagonalData.RdInternal 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
periodandageand the main variable specified through argumenty_var.- highlight_diagonals
Optional internal parameter which is only specified when
plot_densityis called from withinplot_densityMatrix. Seeplot_densityMatrixfor details.