Skip to contents

Creates a faceted plot showing how categorical variables affect topic proportions.

Usage

plot_topic_effects_categorical(
  effects_data,
  ncol = 2,
  height = 800,
  width = 1000,
  title = "Category Effects"
)

Arguments

effects_data

Data frame with columns: topic, value, proportion, lower, upper

ncol

Number of columns for faceting (default: 2)

height

Plot height in pixels (default: 800)

width

Plot width in pixels (default: 1000)

title

Plot title (default: "Category Effects")

Value

A plotly object