| orb | R Documentation |
orb() creates a plot specification: it records the data and the mapping
from variables to visual channels. Layers, labels, scales and themes are
added with +. Nothing is drawn until the plot is printed or saved, so a
specification is cheap to build and modify.
orb(data, ...)
data |
A data frame. |
... |
Aesthetic mappings, given as |
Mappings are given as bare column names, in the style of a formula-free
grammar: orb(df, x = wt, y = mpg, colour = cyl). The recognised channels
are x, y, colour (or color), fill, size, label, group and
tooltip.
An object of class orb_spec.
orb_points(), orb_line(), orb_bars(), orb_area(),
orb_map(), orb_save(), orb_interactive()
p <- orb(mtcars, x = wt, y = mpg, colour = cyl) + orb_points()
p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.