Counts the most frequent values of a diagnosis/coding column and draws a horizontal bar chart in the Hugo Coder look. Title-less by design – the name lives in the card header and the export filename, not in the plot.
Arguments
- data
A data frame (typically the filtered cohort).
- col
Name of the diagnosis/coding column to count.
- n
Number of top categories to show.
- transparent
Passed to
zhn_theme().- ylab
Count-axis label.
Value
A ggplot2::ggplot object.
See also
Other figures:
zhn_km_pairwise(),
zhn_pal,
zhn_plot_cases_by_year(),
zhn_plot_km(),
zhn_register_fonts(),
zhn_save_plot(),
zhn_theme()