Question:
What is the difference between a histogram and bar chart?
Author: Zhasmina Yanislavova TachevaAnswer:
Histograms are used for continuous variables; bar graphs are used for discrete/categorical variables. ggplot(data = mtcars,aes(x=mpg))+geom_histogram() ggplot(data = mtcars,aes(x=gear))+geom_bar()
0 / 5 Â (0 ratings)
1 answer(s) in total