我的数据集以这种方式组织:
factor <- c("group1", "group2", "group2")
X <- c("A", "B", "C")
V1 <- c(1:3)
V2 <- c(7:9)
V3 <- c(13:15)
df <- data.frame(factor, X, V1, V2, V3)
df
factor X V1 V2 V3
1 group1 A 1 7 13
2 group2 B 2 8 14
3 group2 C 3 9 15
我想代表折线图: