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. What does the ‘pch’ option to par() control?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

5. Which types of the plot does qplot plot?

 
 
 
 

6. What is ggplot2 an implementation of?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

11. What is a geom in the ggplot2 system?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

18. What does the gg in ggplot2 stand for?

 
 
 
 

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

 
 
 
 

20. Bitmapped file formats can be most useful for

 
 
 
 

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

Important MCQs On dplyr in R 16

The post is about multiple-choice questions about the package dplyr in R Language. There are 20 MCQs about the package and its use. Let us start with the Quiz on dplyr in R Language.

Please go to Important MCQs On dplyr in R 16 to view the test

MCQs dplyr in R Language

  • What is the function of the dplyr verb Filter?
  • What is the function of the dplyr verb Select?
  • What is the function of the dplyr verb Group By?
  • How does Summarise work?
  • What does the dplyr verb mutate do?
  • The dplyr verb Arrange is responsible for what action?
  • The dplyr verb ‘Filter‘ does what to a data frame?
  • The dplyr verb ‘Select‘ does?
  • What does the dplyr verb ‘Group By‘ do?
  • What does the dplyr verb ‘Arrange‘ do?
  • What does the dplyr verb ‘Mutate‘ do?
  • What symbol is used in dplyr that holds verbs together in a single phrase?
  • Example tools for reproducible report writing are:
  • Reproducibility tools for reports like knitr help with:
  • What is the purpose of the distinct() function in dplyr?
  • In dplyr, what is the purpose of the %>% operator (known as pipe operator)
  • ———– function is similar to the existing subset() function in R but is quite a bit faster.
  • What is the purpose of ungroup() function in dplyr?
  • In dplyr, what does the slice() function do?
  • How can a new column/variable (total_price) be created in dplyr with the sum of two existing columns/variables price1 and price2?

An Introduction to dplyr Package

The dplyr package is used for data manipulation and transformation. It gives a set of functions that make it easy to perform common data manipulation tasks, which include (1) filtering, (2) grouping, (3) summarizing, (4) arranging, and (5) joining data frames.

The package is part of the tidyverse, a collection of R packages designed to work together seamlessly for data analysis and visualization.

Some key functions available in dplyr R Package include:

  • filter(): Used to subset rows based on specified conditions.
  • select(): Used to choose specific columns from a data frame.
  • arrange(): Used to reorder rows based on one or more columns.
  • mutate(): Used to create new columns or modify existing ones.
  • group_by(): Used to group data by one or more variables.
  • summarize(): Used to compute summary statistics for groups of data.
  • join(): Used to merge data frames based on common keys.
dplyr in R Language

The dplyr package provides a powerful and efficient toolkit for data manipulation in R.

R FAQS Logo: dplyr in R Language

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

R Language Quiz 15: Important MCQs

The post is about R Language Quiz with Answers. The quiz covers, MCQs about Data Structure, Data Analysis in R, and Some Basics of R Programming Languages. Let us start with the R Programming MCQs Quiz.

Please go to R Language Quiz 15: Important MCQs to view the test

R Language Quiz with Answers

  • What is NaN called?
  • what is the output of the following y <- c(TRUE, 2)
  • what is the class of object $y$ y <- c(2, “t”)
  • What is the class of the object $y$ y <- c(FALSE, 2)
  • Which of them is not a basic datatype in R?
  • How one can create an integer say 5?
  • The dimension attribute is itself an integer vector having length ——-.
  • Matrices can be created by row-binding using the function
  • What function is used to test objects if they are NaN?
  • What is the function to give names to columns for a matrix?
  • How many atomic vector types does R have
  • What is the output of the following d <- diag(5, nrow = 2, ncol = 2); d
  • Which of the following can be used to display the names of (most of) the objects that are currently stored within R?
  • A ——– is a variable that holds one value at a time
  • What is the meaning of “<-” in R
  • Which of the following is not an R object?
  • Dataframes can be converted into a matrix by calling the following function data ———-
  • R files have an extension ———-.
  • R language has a superficial similarity with ———.
  • Which of the following is an alternative to ‘?’ symbol ———.
R Language Quiz with Answers

https://itfeature.com

https://gmstat.com