Skip to contents

Creates a faceted plot showing diagnostic metrics across different K values from stm::searchK results.

Usage

plot_quality_metrics(
  search_results,
  title = "Diagnostic Plots",
  height = 600,
  width = 800
)

Arguments

search_results

Results from stm::searchK or find_optimal_k()

title

Plot title (default: "Diagnostic Plots")

height

Plot height in pixels (default: 600)

width

Plot width in pixels (default: 800)

Value

A plotly object with faceted diagnostic plots