What is the purpose of the barplot() function in R?
A. Creates a bar plot for a categorical variable
B. Generates random bars in a plot
C. Plots a probability distribution function
D. Computes the mean and standard deviation of a variable
Answer: Option A
Join The Discussion