I have used the following ggplot command:
ggplot
ggplot(survey, aes(x = age)) + stat_bin(aes(n = nrow(h3), y = ..count.. / n), binwidth = 10) + scale
Simple solution (from here):
p <- ggplot(mtcars, aes(disp, drat)) + geom_point() # Example (old labels) p + facet_wrap(~am) to_string <- as_labeller(c(`0` = "Zero", `1` = "One")) # Example (New labels) p + facet_wrap(~am, labeller = to_string)