Skip to contents

Plot-level options

Usage

orb_options(legend = NULL, grid = NULL, interactive = NULL)

Arguments

legend

Should a legend be drawn when a colour, fill or size mapping is present? Default TRUE.

grid

One of "both", "x", "y" or "none".

interactive

Should the SVG output embed interactive behaviour (tooltips, hover highlighting, zoom, pan and legend toggling)? Default TRUE. Raster output is unaffected.

Value

An object of class orb_opts, to be added to a plot.

Examples

orb(mtcars, x = wt, y = mpg) + orb_points() + orb_options(grid = "y")
#> <orb_spec>
#>   data:   32 rows x 11 columns
#>   mapping: x, y 
#>   layers:  points