Is there a way to customize the distance between the x axis factor and the plot in ggplot?
library(ggplot2)
female <- ggplot(gender_and_age[(1:7),], aes(x = gender_and_age, y = count)) + geom_bar(stat = 'identity', fill = 'lightpink1')+ theme_light() + geom_text(aes(label = sprintf("%.2f%%", count/sum(count) * 100)), vjust = -.5)
I want to set a space between "13-17","18-24","25-34", "35-44", "45-45","55-64","65+" and the plot
This is what I want