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 = "."
)

Arguments

year_or_country

Character. Either "year" or "country".

stratified_performance_path

Character. Path to stratified performance files.

stratified_cross_performance_path

Character. Path to cross-stratified performance files.

Value

A ggplot object.

Examples

if (FALSE) { # \dontrun{
plotStratifiedPerf("year",
  stratified_performance_path = "data/Campylobacter/ML_year_performance",
  stratified_cross_performance_path = "data/Campylobacter/cross_test_ML_year_performance"
)
} # }