Plot creation

obsplot()

Create a new obsplot

Marks

mark_area() mark_areaX() mark_areaY() mark_barX() mark_barY() mark_cell() mark_cellX() mark_cellY() mark_dot() mark_dotX() mark_dotY() mark_line() mark_lineX() mark_lineY() mark_link() mark_rect() mark_rectX() mark_rectY() mark_ruleX() mark_ruleY() mark_text() mark_textX() mark_textY() mark_tickX() mark_tickY() mark_image()

Add a mark to an obsplot

mark_frame()

Add a decoration mark to an obsplot

mark_function()

Add a render function mark to an obsplot

mark_svg()

Add an SVG element to an obsplot

Scales

scale_color() scale_opacity() scale_r() scale_x() scale_y() scale_fx() scale_fy()

Define an obsplot scale options

Faceting

facet()

Add a facet to an obsplot

Transforms

Transform functions

transform_bin() transform_binX() transform_binY() transform_group() transform_groupX() transform_groupY() transform_groupZ() transform_map()

Define an Observable Plot transform with outputs and options

transform_mapX() transform_mapY()

Define an Observable Plot transform with map and options

transform_normalizeX() transform_normalizeY()

Define an Observable Plot transform with basis and options

transform_windowX() transform_windowY() transform_stackY() transform_stackY1() transform_stackY2() transform_stackX() transform_stackX1() transform_stackX2()

Define an Observable Plot transform with two options objects

transform_selectFirst() transform_selectLast() transform_selectMinX() transform_selectMaxX() transform_selectMinY() transform_selectMaxY()

Define an Observable Plot transform options only

Options

Main plot options

opts()

Define an obsplot options

style()

Define an obsplot style options

Misc

Utility functions

as_data()

Tells obsplot that a single value is a vector channel, and must be converted to an Array in JavaScript

to_js_date()

Convert a Date or POSIXt object to a JS Date format

Shiny

Functions for Shiny integration

obsplotOutput() renderObsplot()

Shiny bindings for obsplot

Datasets

Datasets used in gallery

aapl

Sample data from Observable Plot documentation examples

alphabet

Sample data from Observable Plot documentation examples

anscombe_obs

Sample data from Observable Plot documentation examples

athletes

Sample data from Observable Plot documentation examples

barley

Sample data from Observable Plot documentation examples

bls

Sample data from Observable Plot documentation examples

bls_unemployment

Sample data from Observable Plot documentation examples

caltrain

Sample data from Observable Plot documentation examples

civilizations

Sample data from Observable Plot documentation examples

congress

Sample data from Observable Plot documentation examples

crimea

Sample data from Observable Plot documentation examples

diamonds_obs

Sample data from Observable Plot documentation examples

dji

Sample data from Observable Plot documentation examples

driving

Sample data from Observable Plot documentation examples

gistemp

Sample data from Observable Plot documentation examples

income

Sample data from Observable Plot documentation examples

iowa

Sample data from Observable Plot documentation examples

metros

Sample data from Observable Plot documentation examples

mobydick1

Sample data from Observable Plot documentation examples

popchange

Sample data from Observable Plot documentation examples

povcalnet

Sample data from Observable Plot documentation examples

riaa

Sample data from Observable Plot documentation examples

seattle

Sample data from Observable Plot documentation examples

sfcases

Sample data from Observable Plot changelog

sftemp

Sample data from Observable Plot documentation examples

simpsons

Sample data from Observable Plot documentation examples

stateage

Sample data from Observable Plot documentation examples

stocks

Sample data from Observable Plot documentation examples

travelers

Sample data from Observable Plot documentation examples

trends2020

Sample data from Observable Plot changelog

unemployment

Sample data from Observable Plot documentation examples