Description Usage Arguments See Also Examples
Set options for a ggvis plot
1 2 3 |
vis |
Visualisation to modify |
width,height |
Width and height of plot, in pixels. Default is 600x400. |
keep_aspect |
Should the aspect ratio be preserved? The default value
is |
resizable |
If TRUE, allow the user to resize the plot.
The default value is |
padding |
A padding object specifying padding on the top, right, left,
and bottom. See |
duration |
Duration of transitions, in milliseconds. |
renderer |
The renderer to use in the browser. Can be |
hover_duration |
The amount of time for hover transitions, in milliseconds. |
link{getOption}
and link{options}
, for getting and
setting global options.
link{default_opts}
to see the default options.
1 2 3 4 5 6 7 | 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())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.