题目
题目

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道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!