Wrapper to generate Paretian Classification of Health Change plot by dimension
Wrapper to generate Paretian Classification of Health Change plot by dimension
This internal function plots Paretian Classification of Health Change (PCHC) by dimension. The input is a data frame containing the information to plot, and the plot will contain bars representing the proportion of the total data that falls into each dimension, stacked by covariate. The wrapper is used in Figures 2.2-2.4.
plot_data: A data frame containing information to plot, with columns for name (the dimensions to plot), p (the proportion of the total data falling into each dimension), and fu (the follow-up).
ylab: The label for the y-axis.
title: The plot title.
cols: A vector of colors to use for the bars.
text_rotate: A logical indicating whether to rotate the text labels for the bars.