: The table() function generates counts for each category.

: Standard bar plots can be created with base R's barplot() or the ggplot2 package using geom_bar() .

For more advanced categorical analysis, these packages are widely used:

Inferential methods allow researchers to test hypotheses about categorical relationships in a population.

Analysis of categorical data in R involves specialized techniques for variables that represent qualitative characteristics, such as gender, region, or recovery status. Unlike continuous numerical data, categorical data—referred to as in R—is divided into discrete groups or "levels". Data Representation and Handling

: Display changes or flows between categorical variables over time using the ggalluvial package . Inferential Statistics and Modeling

: Specialized for working with factors and reordering levels.

: Used for analyzing associations in multi-way contingency tables. Recommended Packages