Hi Enzo,
Yes, this is possible - you can do it with as many plots as you wish. This is handled with the “Related Displays” part of the viewer. The idea is that if you create multiple plots against the same partitioning of the data, then they register as “related displays” in that they are related by the fact that they share the same partitioning. Here’s a silly example:
library(trelliscope)
p1 <- iris %>% qtrellis(by = "Species", name = "plot1",
panel = function(x)
plot(x$Sepal.Length, x$Sepal.Width))
p2 <- iris %>% qtrellis(by = "Species", name = "plot2",
panel = function(x)
plot(x$Petal.Length, x$Petal.Width))
# open up plot 1 in the trelliscope viewer
p1
Now click "related displays” in the viewer an you will see plot2 available. Click on it and you’ll see the two plots side by side for each species.
There are several cases, though, where it would be more effective to put multiple plots in the same panel function.
Ryan