R, mapply , ggplot : EXPR must be a length 1 vector
问题 I am trying plot the subsets of a table using ggplot and gridExtra. But I have bumbed in the following error EXPR must be a length 1 vector. I could come up with any side step. Any help would be useful. Here is a little example of what I'm trying to perform: # the table dt1 <- data.table(parkName=rep(c("Zone A","Zone B", "Zone C" , "Zone D"),5), boundary=rep(0:1,10),v=1:20, w=rnorm(20))[] # criteria for subsetting the table dt2 <- data.table(zone1 = c("Zone A","Zone B"), zone2 =c("Zone B",