ggvis (version 0.4.3)

padding: Define padding.

Description

Define padding.

Usage

padding(top = NULL, right = NULL, bottom = NULL, left = NULL)

Arguments

top, right, bottom, left

Amount of padding on each border. Can either be a single number, "auto", or "strict"

Examples

Run this code
# NOT RUN {
p <- mtcars %>% ggvis(~wt, ~mpg) %>% layer_points()
p %>% set_options(padding = padding())
p %>% set_options(padding = padding(10, 10, 10, 10))
# }

Run the code above in your browser using DataCamp Workspace