题目
DATA1001/1901 (ND) Revision Quiz 2
单项选择题
The dataframe students contains information on 1000 students, with the columns marks, age, country of origin, study style, ATAR and gender. Assuming tidyverse has been loaded, what ggplot would NOT generate an error message? Note: Marks are measured 0-100 (from mid semester exam) Age is number of days from birth Country of Origin is Australia, China etc Study Style is: independent or dependent ATAR is Australia Tertiary Admission Rank ( a number between 0 and 99.95) Gender is Male, Female, NotSpecified etc
选项
A.ggplot(aes(students$age))
B.ggplot(aes(students$age))+geom_hist()
C.ggplot(students)
D.ggplot(students$marks)
查看解析
标准答案
Please login to view
思路分析
The question asks which ggplot call would NOT generate an error when using the dataframe named 'students' with several columns.
Option 1: ggplot(aes(students$age))
- This is not valid because ggplot typically requires a data argument (the dataset) and an aesthetic mapping supplied via aes(), usually in the form ggplot(data, aes(...)). Here, there is no data argumen......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
import seaborn as sns Given a DataFrame df as shown above, how can you plot the bar chart as shown below?
Which one is the correct syntax to import library for data visualisation? You may choose one or more answers.
Why is visualizing the environment important in simulations, such as tracking the spread of radiation in a mouse habitat?
What role does the `getSymbol()` method play in the Environment class within a simulation?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!