powered by
set_options(vis, width = NULL, height = NULL, keep_aspect = NULL, resizable = NULL, padding = NULL, duration = NULL, renderer = NULL, hover_duration = NULL)
FALSE
getOption("ggvis.keep_aspect")
TRUE
getOption("ggvis.resizable")
padding
"canvas"
"svg"
getOption
options
default_options to see the default options.
default_options
mtcars %>% ggvis(~wt, ~mpg) %>% layer_points() %>% set_options(width = 300, height = 200, padding = padding(10, 10, 10, 10)) # Display the default options str(default_options())
Run the code above in your browser using DataLab