string Frequency
Appends a self-contained section that reports the frequency distribution and an optional frequency bar plot for a StringFrequency tabulation.
Produces (inside a section titled caption or freq.name):
A ksl.utilities.io.report.ast.ReportNode.Paragraph summarising total observations, distinct string count, and — when non-zero — the count of observations that fell outside the limit set ("other" count).
A
DataTable("Frequency Table") with columns: String | Count | Cum Count | % | Cum %A ksl.utilities.io.report.ast.ReportNode.PlotNode for the frequency bar chart (omitted when
showPlotisfalse).
No ksl.utilities.io.report.ast.ReportNode.StatPropertyTable is produced because string categories carry no numeric statistics.
Usage:
val doc = report("Classification Results") {
stringFrequency(classificationFrequency)
}Parameters
the string frequency tabulation to report
optional section title; defaults to freq.name
when true (default) a bar chart is appended after the frequency table. Set to false to omit the plot.
when true the bar chart y-axis shows proportions; when false (default) it shows counts. Has no effect when showPlot is false.