The post is about MCQs Graph Plotting in R Language. There are 20 multiple-choice questions. The quiz covers the topics related to graphics devices in R Language, base and lattice graphics systems in R, the ggplot2 function, and parameters of different plot functions. Let us start with MCQs Graph Plotting in R Language.
The quiz is about Graphing and Plotting in R Language
MCQs Graph Plotting in R
- Which of the following is an example of a valid graphics device in R?
- Which of the following is the example of a vector graphics device in R?
- Bitmapped file formats can be most useful for
- Which of the following functions is typically used to add elements to a plot in the base graphics system?
- Which function opens the screen graphics device on Windows?
- What does the ‘pch’ option to par() control?
- If I want to save a plot to a PDF file, which of the following is the correct way of doing that
- Which function opens the screen graphics device for the Mac?
- What does the gg in ggplot2 stand for?
- Under the lattice graphics system, what do the primary plotting functions like xyplot() and bwplot() return?
- Which of the following is a basic workhorse function of ggplot2?
- Which types of the plot does qplot plot?
- Transparency is determined by which parameter of the rgb function?
- Which of the following is an R package that provides color palettes for sequential, categorical, and diverging data?
- The following code does NOT result in a plot appearing on the screen device.
library(lattice)
library(datasets)
data(airquality)
p <- xyplot(Ozone ~ Wind | factor(Month), data = airquality)
Which of the following is an explanation for why no plot appears? - In the lattice system, which of the following functions can be used to finely control the appearance of all lattice plots?
- What is ggplot2 an implementation of?
- What is a geom in the ggplot2 system?
- When I run the following code I get an error: I was expecting a scatterplot of ‘votes’ and ‘rating’ to appear. What’s the problem?
- The following code creates a scatterplot of ‘votes’ and ‘rating’ from the movies dataset in the ggplot2 package. After loading the ggplot2 package with the library() function, I can run qplot(votes, rating, data = movies)
How can I modify the code above to add a smoother to the scatterplot?
https://itfeature.com, https://gmstat.com