Labels in Histograms

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!

No real idea as they show up for me. . could you have something lurking in your global environment from earlier work?

1 Like

thank you for your answer! i will take a look!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.