add_props {ggvis} | R Documentation |
Add visual properties to a visualisation
Description
Add visual properties to a visualisation
Usage
add_props(vis, ..., .props = NULL, inherit = NULL, env = parent.frame())
Arguments
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. |
Examples
mtcars %>% ggvis(~wt, ~mpg) %>% layer_points()
mtcars %>% ggvis() %>% add_props(~wt, ~mpg) %>% layer_points()
mtcars %>% ggvis(~wt) %>% add_props(y = ~mpg) %>% layer_points()
[Package ggvis version 0.4.9 Index]