Examveda

In R, what does the polygon() function do when used in a plot?

A. Draws a polygon on the plot

B. Adds a polygonal shape to the legend

C. Connects data points with straight lines

D. Fills the plot background with a polygonal shape

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