Vidyalelo
R Programming · Q12

Data Visualization with ggplot2

Programming · R Programming · question 12

Q12

How do you create a histogram in ggplot2 for a numeric variable named variable?

A.
geom_histogram(x = variable)
B.
histogram(variable)
C.
geom_hist(mapping = aes(x = variable))
Answer
D.
hist_plot(variable)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board