add_fun | R Documentation |
Useful when you need two or more layers that apply a summary statistic to the original data.
add_fun(p, fun, ...)
p |
a plotly object. |
fun |
a function. Should take a plotly object as input and return a modified plotly object. |
... |
arguments passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.