MCQ gg intro test
Quiz Summary
0 of 16 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
-
Daww you didn’t pass. Keep trying. You need to score at least 80% to pass.
-
Good! You scored up to 80%. You have won a bronze medal. This earns you 1 brainpoint! Go for gold (a perfect score) and get 100 brain points!
-
Very good! You scored up to 90%. You have won a silver medal. This earns you 10 brainpoints! Go for gold (a perfect score) and get 100 brain points!
-
Congrats! You scored 100%. You have won a gold medal. This earns you 100 brainpoints!
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 16
1. Question
True or False: The {ggplot2} package is part of the {tidyverse} meta-package.
CorrectIncorrect -
Question 2 of 16
2. Question
What does the
gg
inggplot2
stand for?CorrectIncorrect -
Question 3 of 16
3. Question
What is the name of the most robust R package for data visualization?
CorrectIncorrect -
Question 4 of 16
4. Question
True or False: The {ggplot2} package is part of the {tidyverse} meta-package.
CorrectIncorrect -
Question 5 of 16
5. Question
Which of the code segments below will NOT work to load the {ggplot2} package?
CorrectIncorrect -
Question 6 of 16
6. Question
True or False: To properly use the
ggplot()
function, you need to use all 7 grammar of graphics layers (data, aesthetics, geometries, facets, statistics, coordinates and themes)CorrectIncorrect -
Question 7 of 16
7. Question
What do we provide in the
geom
layer?CorrectIncorrect -
Question 8 of 16
8. Question
The scatterplot below uses the
storms
dataset from {dplyr} to visualize the positions and movements of hurricanes in the Unites States in the year 2005.hurricanes <- storms %>% filter(status == "hurricane", year == 2005)_x000D_ _x000D_ ggplot(data = hurricanes, _x000D_ mapping = aes(x = long, y = lat, color = name)) + _x000D_ geom_point()
Which of the options below correctly describes the aesthetic mappings of this plot?
CorrectIncorrect -
Question 9 of 16
9. Question
The code below attempts to create a scatterplot of height against weight using the
women
dataset (a built-in R dataset).The code is faulty however, and generates no plot.
ggplot(women, aes(x = height, y = weight)) %>% _x000D_ geom_point()
Which of the options below accurately describes the issue with the code?
CorrectIncorrect -
Question 10 of 16
10. Question
You try to plot a graph with the following code:
ggplot(mapping = aes(x = height, y = weight)) +_x000D_ geom_point()
but R returns an error message. What is the problem with this code?
CorrectIncorrect -
Question 11 of 16
11. Question
Which of the below functions is not a
geom_*()
function in {ggplot2}?CorrectIncorrect -
Question 12 of 16
12. Question
Which of the following would you use to make all the points in a graph larger?
CorrectIncorrect -
Question 13 of 16
13. Question
Given the following code chunk,
ggplot(data= health_charts,_x000D_ mapping = aes(x = age, y = bmi))_x000D_ + geom_point()
which of the following would apply an aesthetic mapping to differentiate by sex?
CorrectIncorrect -
Question 14 of 16
14. Question
Many programmers start off building a small chunk of code, testing to see if it works, and adding a bit more, seeing if it works, and building the program one step at a time._x000D_
What’s the name for this process?CorrectIncorrect -
Question 15 of 16
15. Question
This lesson recommended we put each new element on a separate line. In fact, it’s good practice to make all our code legible, not just when using
ggplot()
._x000D_
But why do we want legible code?CorrectIncorrect -
Question 16 of 16
16. Question
ONLY ONE of the code chunks shown will plot the scatter plot seen, using the
women
dataset in R. Which code chunk has the correct syntax?(Hint:
women
is a built-in R dataset, so you can test these on your computer)CorrectIncorrect