plot_data <- data.frame(name = c("Dimension 1", "Dimension 2"),
p = c(0.5, 0.5),
fu = c("Covariate A", "Covariate B"))
cols <- c("#99FF99", "#006600", "#FFCC99", "#663300")
.pchc_plot_by_dim(plot_data, "Proportion", "Example PCHC Plot", cols)
Run the code above in your browser using DataLab