Group (factorial) data with multiple factors. error: incompatible size (0), expecting 1 (the group size) or 1
问题 This post is a following up of Changing line color in ggplot based on "several factors" slope I would like to group the data (bellow) by "PQ", however I get the following error: "incompatible size (0), expecting 1 (the group size) or 1" Data ID<-c("A_P1","A_P1","A_P1","A_P1","A_P1","A_P2","A_P2","A_P2","A_P2","A_P2","A_P2","B_P1","B_P1","B_P1","B_P1","B_P1","B_P1","B_P1","B_P1","B_P2","B_P2","B_P2","B_P2","B_P2","B_P2","B_P2","B_P2") Q<-c("C1","C1","C2","C3","C3","C1","C1","C2","C2","C3","C3"