transform | R Documentation |
transform
transform(type, ...)
type |
require, transform type |
... |
other optional param depends on type |
[{type: '', ...}, ...] transform is an array, you can config it in two ways: - use `transform=list(list(...), list(...))` in `g2()` or `g2_` family functions - use `+` to add multiple `transform(type, ...)` transform(type='bin',thresholdsX,thresholdsY,channel) transform(type='binX',thresholds,channel) transform(type='diffY',groupBy,series) transform(type='dodgeX',groupBy,reverse,orderBy,padding) transform(type='flexX',field,channel,reducer) transform(type='group',channels,channel) transform(type='groupColor',channel) transform(type='groupX',channel) transform(type='groupY',channel) transform(type='jitter',padding=0,paddingX=0,paddingY=0,random=js('Math.random()')) transform(type='jitterX',) transform(type='jitterY',) transform(type='normalizeY',) transform(type='pack',) transform(type='sample',) transform(type='select',) transform(type='selectX',) transform(type='selectY',) transform(type='sortColor',) transform(type='sortX',) transform(type='sortY',) transform(type='stackEnter',) transform(type='stackY',) transform(type='symmetryY',groupBy='x')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.