Skip to contents

This file contains all visualization functions used by the SearchAnalyzer class and other components of the searchAnalyzeR package. Create Overview Performance Plot

Usage

plot_overview(metrics)

Arguments

metrics

List of calculated metrics from SearchAnalyzer

Value

ggplot object showing key performance indicators

Details

Creates a focused overview plot displaying the core search performance metrics:

  • Precision: Proportion of retrieved articles that are relevant

  • Recall: Proportion of relevant articles that were retrieved

  • F1 Score: Harmonic mean of precision and recall

The plot uses color coding to distinguish between metric types and displays exact values on top of each bar.

Examples

# Assume you have calculated metrics
metrics <- list(
  precision_recall = list(precision = 0.8, recall = 0.6, f1_score = 0.69)
)

overview_plot <- plot_overview(metrics)
print(overview_plot)