This function creates a visualization for categorical data using ggplot2. It takes a dataset and a column name, generates a frequency table for the categorical data, and plots the frequencies.
plotCategoricalData(datatoplot, columnName)
A ggplot object representing the frequency of each category in the specified column.
# plotCategoricalData(myData, "myCategoryColumn")