Initialisation & Shiny

Initialise g2r chart.

g2()

Initialise

g2Output() renderG2() g2Proxy()

Shiny bindings

Animation

Helper functions to easily animate individual figures.

Animation new_animation()

Animations

Aspects

Controls aspects of figures.

asp()

Aspects

adjust()

Adjust

coord_type() coord_rotate() coord_scale() coord_reflect() coord_transpose() coord()

Coordinates

sync() unsync()

Sync & Unsync

Figures

All available figures.

fig_bin()

Bins

fig_boxplot()

Boxplot

fig_density()

Density

fig_dotplot()

Dot plot

fig_errorbar()

Error bar

fig_guitar()

Guitar

fig_histogram()

Histogram

fig_map() get_map()

Map

fig_ribbon()

Ribbon

fig_rug()

Rug

fig_voronoi()

Voronoi

fig_waffle()

Waffle

fig_interval() fig_line() fig_point() fig_path() fig_area() fig_polygon() fig_schema() fig_edge() fig_violin() fig_heatmap() fig_line_stack() fig_violin_dodge() fig_point_jitter() fig_point_stack() fig_point_dodge() fig_interval_stack() fig_interval_dodge() fig_interval_symmetric() fig_area_stack() fig_schema_dodge() fig_venn()

Primitive Firgures

fig_smooth()

Smooth

Informational elements

All available informational elements.

info_line() info_vline() info_hline() info_text() info_image() info_region() info_html() info_arc() info_data_marker() info_region_filter() info_data_region()

Info

Gauges

Gauges, similar to scales.

gauge_axis() gauge_x_identity() gauge_y_identity() gauge_x_linear() gauge_y_linear() gauge_x_discrete() gauge_y_discrete() gauge_x_log() gauge_y_log() gauge_x_pow() gauge_y_pow() gauge_x_time() gauge_y_time() gauge_x_discrete_time() gauge_y_discrete_time() gauge_all_axis() hide_axes() hide_axis()

Axis

gauge_color() gauge_color_viridis()

Gauge colour

gauge_label()

Gauge label

gauge_opacity()

Gauge opacity

gauge_shape()

Gauge shape

gauge_size()

Gauge size

gauge_style()

Gauge label

gauge_tooltip()

Gauge tooltip

Configurations

Configurations, applies to single or multiple figures.

conf_globals()

General Options

conf_tooltip()

Tooltip

conf_font()

Font

conf_renderer()

Renderer

conf_legend() leg()

Legend

motif()

Style

motif_dark() custom_motif()

Motif

style()

Style

g2r_globals()

Globals

Planes

Planes, similar to facets.

plane_wrap() planes()

Plane

Shiny

Shiny proxies to dynamically interact with the chart as well as callbacks to get data on how the chart is interacted with.

repaint() clear() render() destroy()

Manipulate Chart

change_data()

Change Data

change_size() change_width() change_height()

Change Size

to_dataURL() download_image()

Convert

conceal() reveal()

Conceal & Reveal Figures

plot_callbacks()

Plot Callbacks

Data

Datasets and data manipulation function, namely for examples.

alter()

Dataset

temp

Temperature

fruits

Fruits

gaus

Gaus

states

State

Helpers

Helper functions.

cb()

Callback

interact_brush() interact_slider() interact_zoom() interact_drag()

Brush