Response: Correct answer is Option b – bwplot() Bwplot() is the Box and Whisker plot used for numerical variables. This is part of lattice package in R. Below is an example of a box and whisker plot using the singer dataset. library(lattice) require(stats) #bwplot
bwplot(voice.part ~ height, data=singer, xlab="Height (inches)")
plot() is used for generic x-y plotting.
xyplot() produces bivariate scatterplots or time-series plots.
#xyplot
## Tonga Trench Earthquakes
Depth <- equal.count(quakes$depth, number=8, overlap=.1)
xyplot(lat ~ long | Depth, data = quakes) dotplot() produces Cleveland dot plots.