Description Usage Arguments Details Value Note Author(s) Examples
View source: R/common-events.R
The limits information is stored in the meta data as meta$limits, of
which this function makes use to sync the limits of layers.
1 | sync_limits(meta, ...)
|
meta |
the meta data contains a matrix of limits in |
... |
an arbitrary number of layers |
An event is attached to meta$limits so that whenever it is changed,
the limits all the layers will be reset by the method
layer$setLimits(), hence we only need to take care of
meta$limits and this function will do the rest of work.
Besides, the size and position of the brush will be restored.
NULL (an event is attached on meta$limits so that
whenever the limits are changed, the layers will be updated using the new
limits)
You do not need to call qupdate to update the
layers explicitly when meta$limits is changed, because
layer$setLimits() will update the layers.
Yihui Xie <http://yihui.name>
1 | ## sync_limits(meta, layer1, layer2, layer3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.