| marks | R Documentation |
Marks are the layers that draw data: points, lines, bars,
areas, text, rules, ribbons, links and polygons. Each mark_*() call
adds one layer to the spec. mark_boxplot(), mark_violin(),
mark_sina() and
mark_histogram() summarise the distribution of a variable; their
statistics are computed from the data when the plot is compiled.
Mappings are passed as bare column names or expressions, and are added
to the global mappings set in glyph(). A mark can also take its own
data, so one plot can draw from several data frames. Fixed visual
properties that don't depend on the data, such as size, opacity or
stroke_width, go in style. Interaction and animation are set for the whole plot with
interact() and animate().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.