amount_of_sugar_in_cakes = rnorm(1000,37,5)
hist(amount_of_sugar_in_cakes, labels = TRUE, xlab = "Amount of Sugar in Cake grams", ylab = "Number of Cakes", breaks=100, main = "Distribution of Sugar in Cakes: You Dislike Anything with more than 27 grams of Sugar")
Does anyone know why the labels on the x-axis and the y-axis are not showing up? I was able to figure this out using ggplot - but for some reason these labels are not working in base R.
Does anyone know why this is?
Thanks!