Visualizes model performance (MCC) stratified by year or country, comparing within-group vs cross-group evaluation.
plotStratifiedPerf(
year_or_country = "year",
stratified_performance_path = ".",
stratified_cross_performance_path = "."
)A ggplot object.
if (FALSE) { # \dontrun{
plotStratifiedPerf("year",
stratified_performance_path = "data/Campylobacter/ML_year_performance",
stratified_cross_performance_path = "data/Campylobacter/cross_test_ML_year_performance"
)
} # }