Best MCQs Graph Plotting in R 17

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

1. Transparency is determined by which parameter of the rgb function?

 
 
 
 

2. Which function opens the screen graphics device for the Mac?

 
 
 
 

3. Which function opens the screen graphics device on Windows?

 
 
 
 

4. Which of the following is an R package that provides color palettes for sequential, categorical, and diverging data?

 
 
 
 

5. What is a geom in the ggplot2 system?

 
 
 
 

6. What does the gg in ggplot2 stand for?

 
 
 
 

7. 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?

 
 
 
 

8. Which types of the plot does qplot plot?

 
 
 
 

9. Under the lattice graphics system, what do the primary plotting functions like xyplot() and bwplot() return?

 
 
 
 

10. Which of the following is an example of a valid graphics device in R?

 
 
 
 

11. Which of the following is a basic workhorse function of ggplot2?

 
 
 
 

12. Bitmapped file formats can be most useful for

 
 
 
 

13. In the lattice system, which of the following functions can be used to finely control the appearance of all lattice plots?

 
 
 
 

14. What does the ‘pch’ option to par() control?

 
 
 
 

15. Which of the following functions is typically used to add elements to a plot in the base graphics system?

 
 
 
 

16. 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?

 
 
 
 

17. If I want to save a plot to a PDF file, which of the following is the correct way of doing that

 
 
 
 

18. 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?

 
 
 
 

19. What is ggplot2 an implementation of?

 
 
 
 

20. Which of the following is the example of a vector graphics device in R?

 
 
 
 

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?
Learn R Language and FAQS, MCQs Graph plotting in R

https://itfeature.com, https://gmstat.com

Leave a Reply

Discover more from R Language Frequently Asked Questions

Subscribe now to keep reading and get access to the full archive.

Continue reading