Examveda

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))

D. hist_plot(variable)

Answer: Option C


This Question Belongs to R Programming >> Data Visualization With Ggplot2

Join The Discussion

Related Questions on Data Visualization with ggplot2