Using the state parameter in makeDisplay

7 views
Skip to first unread message

Saptarshi Guha

unread,
Nov 24, 2015, 4:19:19 PM11/24/15
to essera-Users
Hello,
I tried using passing this to state

..., state= list(
     ## sort = list(normalizedSlopeOfY = "desc"),
     filter = list(
         platform = list(regex = "Windows7-32"),
         och = list(select = c("opt")),
         topts = list(select = c("e10s"))
     ),
    layout = list(nrow = 2, ncol = 4))


But i don't see any change in the layout after websyncing.

I also tried wrapping the argument in validateState, but no change.

Am i using it incorrectly?
Regards
Saptarshi

Ryan Hafen

unread,
Dec 11, 2015, 3:44:17 AM12/11/15
to saptars...@gmail.com, essera-Users
Looking into this.



--
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/CAJDot1pDT8MW9FsDLE9aJNN0VUJsM0md3ycM-oOdPE%2BKOJPpSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ryan Hafen

unread,
Dec 11, 2015, 2:49:40 PM12/11/15
to saptars...@gmail.com, essera-Users
This is fixed in 0.9.1 - just merged.

Here are some examples:

library(trelliscope)

p <- divide(iris, by = "Species") %>%
  qtrellis(function(x)
    xyplot(Sepal.Width ~ Sepal.Length, data = x), 
    layout = c(1, 3), name = "mydisplay",
    state = list(layout = list(nrow = 1, ncol = 3)))

p # will display with default specified layout

# override default in call to "view"
view("mydisplay", state = list(layout = list(nrow = 1, ncol = 1)))

# or update the display without recreating it
updateDisplay("mydisplay", state = list(layout = list(nrow = 1, ncol = 2)))
view("mydisplay")



On Nov 24, 2015, at 1:18 PM, Saptarshi Guha <saptars...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages