Initialisation

Initialise a chart.

g2()

Initialise

qg2()

Quick Plot

Figures

Figures available

fig_area()

Area

fig_bin()

Bin

fig_boxplot()

Boxplot

fig_candle()

Candle

fig_contour()

Contour

fig_density()

Density

fig_edge()

Edge

fig_error()

Error

fig_heatmap()

Heatmap

fig_histogram()

Histogram

fig_line()

Line

fig_map()

Map

fig_path()

Path

fig_pie()

Pie

fig_point()

Point

fig_polygon()

Polygon

fig_range()

Range

fig_ribbon()

Ribbon

fig_rug()

Rug

fig_schema()

Schema

fig_segment()

Segment

fig_smooth()

Smooth

fig_voronoi()

Voronoi

fig_waffle()

Waffle

fig_interval()

Interval

Aspects

Define visualisations aspects

asp()

Aspects

adjust()

Adjust

config()

Configure Figure

Coordinates

Customise the coordinates

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

Coordinates

Shiny

Shiny-specific functions

g2Output() renderG2()

Shiny Bindings

g2_proxy()

Shiny Proxy

capture_event()

Events

remove_figure()

Remove a figure

render()

Render

change_data()

Change the data

Gauge

Gauges to rescales aspects

gauge() gauge_x_time() gauge_y_time() gauge_x_linear() gauge_y_linear() gauge_x_cat() gauge_y_cat() gauge_x_time_cat() gauge_y_time_cat() gauge_x_log() gauge_y_log() gauge_x_pow() gauge_y_pow() gauge_x_quantile() gauge_y_quantile() gauge_x_quantize() gauge_y_quantize() gauge_x_identity() gauge_y_identity() gauge_asp()

Gauge Grid

gauge_color() gauge_size() gauge_shape() gauge_tooltip() gauge_label() gauge_style() gauge_interplay()

Gauge Aspects

gauge_color_viridis() gauge_color_plasma() gauge_color_inferno() gauge_color_magma() gauge_color_accent() gauge_color_dark2() gauge_color_paired() gauge_color_pastel1() gauge_color_pastel2() gauge_color_set1() gauge_color_set2() gauge_color_set3() gauge_color_neon() gauge_color_std() gauge_color_pink() gauge_color_orange() gauge_color_lime() gauge_color_blue() gauge_color_aw() gauge_color_g2rq() gauge_color_g2rc() gauge_color_g2rd() gauge_color_brbg() gauge_color_piyg() gauge_color_prgn() gauge_color_puor() gauge_color_rdbu() gauge_color_rdgy() gauge_color_rdylbu() gauge_color_rdylgn() gauge_color_spectral() gauge_color_flashy() gauge_color_red() gauge_color_ryb() gauge_color_bwg()

Color Palettes

Info

Annotate charts

info_text() info_image() info_arc() info_line() info_vline() info_hline() info_abline() info_region() info_region_filter() info_marker() info_data_region() info_shape() info_html()

Text

Planes

Split chart into facets

planes()

Planes

Axis

Configure axes

subject()

Subject

axis_x() axis_y() axis_asps() axis_hide() legend_color() legend_size() legend_asps()

Axes

axis_title_x() axis_title_y()

Axis Title

Tooltip

Configure tooltip

tooltip()

Tooltip

tpl() tpl_item()

Tooltip Template

aka()

Aliases

Animation

Customise animations

animation

Animations

new_animation()

New Animation

Options

Scrollbar and slider

slider()

Slider

scrollbar()

Scrollbar

State & Interplay

Customise interplay (interactions) and state

active() selected()

State

interplay() remove_interplay() register_interplay()

Interplay

Motif

Customise the theme

motif() global_motif() motif_from_json() motif_from_list() motif_as_list()

Motif

element() elementPoint() elementLine() elementArea() elementEdge() elementInterval() elementPolygon() elementSchema()

Element

global_digits()

Digits

Graph

Layout graphs

layout_arc()

Layout Arc

layout_igraph()

Layout with igraph

Crosstalk

Crosstalk-related functions

crosstalk_select()

Crosstalk Customisation

Map

Map-related functions

get_gadm_data() get_map_data() get_world_map()

Get Map

fig_map()

Map

Rmarkdown

Actions and inputs for Rmarkdown

g2_action()

Plot Action

input_button()

Button Input

input_select()

Select Input

input_slider()

Slider Input

input_checkbox() input_radio()

Checkbox and Radio

action_filter_data()

Filter Data

action_select_data()

Select Data

action_toggle_visibility()

Toggle Visibility

Data

Convert Data to a format g2r understands

to_g2r()

Convert to Tibble