Examveda

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

Related Questions on Statistical Analysis with R (Distributions, Graphics)

What does the qqnorm() function in R do?

A. Plots a quantile-quantile plot for normality assessment

B. Generates a random sample from a normal distribution

C. Creates a normal probability plot

D. Quantifies the normal distribution of a variable