Vidyalelo
R Programming · all questions

Data Visualization with ggplot2
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

172

Questions

2/9

Page

Pick an option on a question to see the right answer and solution.

What does the theme_minimal() function do in ggplot2?

Select an option to see the answer and solution.

In ggplot2, how do you customize the appearance of the legend title?

Select an option to see the answer and solution.

How do you customize the transparency of points in a ggplot2 scatter plot?

Select an option to see the answer and solution.

In ggplot2, what does the geom_text() function do?

Select an option to see the answer and solution.

How do you create a faceted scatter plot in ggplot2 for two categorical variables facet1 and facet2?

Select an option to see the answer and solution.

In ggplot2, how do you create a bar plot with horizontal bars?

Select an option to see the answer and solution.

What is the purpose of the scale_y_log10() function in ggplot2?

Select an option to see the answer and solution.

How do you create a theme with a dark background in ggplot2?

Select an option to see the answer and solution.

In ggplot2, how do you customize the appearance of axis ticks?

Select an option to see the answer and solution.

How do you create a density plot in ggplot2 for a numeric variable named values?

Select an option to see the answer and solution.

Which of the following code create n samples of size "size" with probability prob from the binomial?

Select an option to see the answer and solution.

Which of the following code create a n item vector of random normal deviates?

Select an option to see the answer and solution.

Which of the following statement can read csv files?

Select an option to see the answer and solution.

Which of the following statement read a tab or space delimited file?

Select an option to see the answer and solution.

which of the following statement chose those objects meeting a logical criterion?

Select an option to see the answer and solution.

Which of the following statement is another way to get a subset?

Select an option to see the answer and solution.

Which of the following sort a dataframe by the order of the elements in B?

Select an option to see the answer and solution.

Which of the following is Mac menu command?

Select an option to see the answer and solution.

. . . . . . . . list the variables in the workspace.

Select an option to see the answer and solution.

. . . . . . . . remove all the variables from the workspace.

Select an option to see the answer and solution.