我想为在不同列中定义的多个变量创建散点图。样本输入:
df=structure(list(section = structure(1:6, .Label = c("a", "b",
"c", "d", "e", "f"), class = "factor"), level = c(0L, 1L, 2L,
1L, 2L, 0L), math.av = c(83L, 67L, 76L, 56L, 72L, 76L), science.av = c(75L,
76L, 82L, 72L, 82L, 68L), language.av = c(80L, 75L, 80L, 73L,
85L, 70L)), class = "data.frame", row.names = c(NA, -6L))
我希望将x轴划分为对象的4个不同列中的每个列,并将y轴表示为它们的不同值。
我必须将它们按颜色分组,并用另一列作为指示器,在这种情况下,根据级别