%synch% | R Documentation |
Pipe operators to combine plots by either stacking or synching multiple sliders.
e1 %synch% e2 e1 %stack% e2
e1 |
slickR htmlwidget to place on top |
e2 |
slickR htmlwidget to place on bottom |
htmlwidget
if(interactive()){ # working with multiple slicks sets <- split( sample(nba_team_logo$uri, size = 28, replace = FALSE), rep(c(1,2,3,4),each=7) ) slicks <- lapply(sets,FUN = function(x,...){ slickR(obj = x,...) },height = 100) # independent slicks Reduce(`%stack%`,slicks) # 1,2 synch stacked on 3,4 synch (slicks[[1]] %synch% slicks[[2]]) %stack% (slicks[[3]]%synch%slicks[[4]]) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.