Towards Data Science, Data Analysis, Bayesian Statistics, Data Visualization, Deep Dives.
legend.text = element_text(colour="black", size=10), plot.margin = margin(t = 10, # Top margin r = 2, # Right margin b = 10, # Bottom margin l = 10) # Left margin ) A simple way to visualize categorical data is with a bar graph. ggplot(df, aes(x = factor(Response), fill = Group)) +