# R Programming Questions and Answers – ggplot2 – 3

This set of R Programming Problems focuses on “ggplot2 – 3”.

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

Explanation: 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

Explanation: 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

Explanation: 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

Explanation: 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

Explanation: is.rel reports whether x is a real object.

Note: Join free Sanfoundry classes at Telegram or Youtube

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

Explanation: 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

Explanation: 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

Explanation: Character vector is given for the creation of identity.

Sanfoundry Global Education & Learning Series – R Programming Language.

Here’s the list of Best Books in R Programming
Language.

To practice problems on all areas of R Programming, Here is complete set of 1000+ Multiple Choice Questions and Answers.