250+ TOP MCQs on ggplot2 and Answers

R Programming Problems on “ggplot2 ”.

1. _________ display contours of a 3d surface in 2d.
a) aes_contour
b) geom_contour
c) aes_gem
d) aes_auto

Answer: b
Clarification: A layer specific dataset – only needed if you want to override the plot defaults.

2. Point out the correct statement?
a) autoplotgraph is used to complete ggplot appropriate to a particular data type
b) auto_element wraps up a projection of summary functions
c) ggplot.data create a new ggplot plot from a data frame
d) aes_sdensity display a smooth density estimate

Answer: c
Clarification: is.ggplot reports whether x is a ggplot object.

3. ______ display a smooth density estimate.
a) geom_density2
b) geom_density
c) aes_sdensity
d) geom_contour

Answer: b
Clarification: geom_density display a smooth density estimate. A smooth density estimate calculated by stat_density.

4. Which of the following draws nothing?
a) geom_blank
b) geom
c) geom_bin2d
d) geom_contour

Answer: c
Clarification: geom_bin2d adds heatmap of 2d bin counts.

5. Point out the correct statement?
a) is.theme reports whether x is a real object
b) is.object reports whether x is a aesthetic object
c) qplot is used for quick plot
d) ggplot describe the type of plot you will produce

Answer: c
Clarification: is.rel reports whether x is a real object.

6. _________ describe the type of plot you will produce.
a) geoms
b) ggplot
c) fplot
d) gplot

Answer: a
Clarification: Geoms is short form for geometric objects.

7. __________ is interval represented by a vertical line, with a point in the middle.
a) geom_range
b) geom_pointrange
c) printplot
d) geom_contour

Answer: b
Clarification: autoplot uses ggplot2 to draw a particular plot for an object of a particular class in a single command.

8. Which of the following create a set of identity mappings?
a) ggplot
b) aes_all
c) aes
d) ggorder

Answer: d
Clarification: Character vector is given for the creation of identity.

Leave a Reply

Your email address will not be published. Required fields are marked *