【发布时间】:2019-11-04 01:45:01
【问题描述】:
我有数据框 DF 显示不同学生在两个测试中的表现,test1 和 test2:
DF <- data.frame(student = factor(c("S1", "S2", "S3", "S4", "S5")),
test1 = factor(c(90, 77, 45, 67, 80)),
test2 = factor(c(70, 75, 55, 64, 80)))
我想随着时间的推移绘制学生的表现,即在一个看起来像这样的图中跨越两个测试,但是用student而不是series和测试而不是time(所以(test1和test2 `,而不是 x 轴上的数字 2 和 4):
我该怎么做?
【问题讨论】: