Skip to contents

Creates a boxplot showing the overall distribution of a readability metric.

Usage

plot_readability_distribution(readability_data, metric, title = NULL)

Arguments

readability_data

Data frame from calculate_text_readability()

metric

Metric to plot (e.g., "flesch", "flesch_kincaid", "gunning_fog")

title

Plot title (default: auto-generated)

Value

A plotly boxplot

Examples

if (FALSE) { # \dontrun{
data(SpecialEduTech, package = "TextAnalysisR")
texts <- SpecialEduTech$abstract[1:20]
readability <- calculate_text_readability(texts)
plot <- plot_readability_distribution(readability, "flesch")
print(plot)
} # }