trelliscope with 2 graphs in the same panel

15 views
Skip to first unread message

Enzo

unread,
Jul 11, 2015, 11:46:05 AM7/11/15
to tesser...@googlegroups.com
There are type of analysis where it may make sense to group graphs in pair (at the very least).

I would like to do some  time series analysis and specifically some forecasting.  In these cases I find it very useful to associate a "classic" seasonality plot and a forecasting plot (one sort of "explains" the other).

I understand that I could create a specific trelliscope panel for each of the above, but it would be less useful and less effective.

Would this be possible?

Ryan Hafen

unread,
Jul 13, 2015, 10:37:29 AM7/13/15
to Enzo, tesser...@googlegroups.com
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



--
You received this message because you are subscribed to the Google Groups "Tessera-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tessera-user...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tessera-users/9a30ca46-f3c4-42e7-9ad8-341a739e75f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages