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. If I want to save a plot to a PDF file, which of the following is the correct way of doing that

 
 
 
 

2. Bitmapped file formats can be most useful for

 
 
 
 

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

 
 
 
 

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

 
 
 
 

5. Which types of the plot does qplot plot?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

9. What is ggplot2 an implementation of?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

14. What does the gg in ggplot2 stand for?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

20. What is a geom in the ggplot2 system?

 
 
 
 

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