add_props | R Documentation |
Add visual properties to a visualisation
add_props(vis, ..., .props = NULL, inherit = NULL, env = parent.frame())
vis |
Visualisation to modify. |
... |
A set of name-value pairs. The name should be a valid vega property. The first two unnamed components are taken to be |
.props |
When calling |
inherit |
If |
env |
The environment in which to evaluate variable properties. |
mtcars %>% ggvis(~wt, ~mpg) %>% layer_points()
mtcars %>% ggvis() %>% add_props(~wt, ~mpg) %>% layer_points()
mtcars %>% ggvis(~wt) %>% add_props(y = ~mpg) %>% layer_points()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.