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
View Answer
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
View Answer
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
View Answer
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
View Answer
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
View Answer
Explanation: 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
View Answer
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
View Answer
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
View Answer
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.
If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]
- Check R Programming Books
- Apply for Programming Internship
- Check Information Technology Books
- Practice Programming MCQs