Skip to contents

Creates a scatter plot comparing topic model metrics across K values. Automatically selects the best available metric combination.

Usage

plot_model_comparison(search_results, title = NULL, height = 600, width = 800)

Arguments

search_results

Results from stm::searchK or find_optimal_k()

title

Plot title (default NULL selects an auto-title based on which metric columns are present in search_results)

height

Plot height in pixels (default: 600)

width

Plot width in pixels (default: 800)

Value

A plotly scatter plot