Learn R Programming

searchAnalyzeR (version 0.1.0)

find_top_terms: Find Top Performing Terms

Description

Identifies the top-performing search terms based on their effectiveness scores and optionally creates highlighted visualizations.

Usage

find_top_terms(
  term_analysis,
  n = 3,
  score_col = "tes",
  plot = TRUE,
  plot_type = "precision_only"
)

Value

List containing top terms and optionally a highlighted plot

Arguments

term_analysis

Data frame from term_effectiveness() function

n

Number of top terms to identify (default: 3)

score_col

Name of the score column to use for ranking (default: "tes")

plot

Whether to create a highlighted plot (default: TRUE)

plot_type

Type of plot for highlighting ("precision_only", "coverage_only", "precision_coverage")

Details

This function:

  1. Calculates effectiveness scores if not already present

  2. Identifies the top N performing terms

  3. Optionally creates a visualization highlighting these terms