All functions

Animation()

Animation: a transition spec bound to a data variable

ColorScale()

ColorScale: palette override for the color aesthetic

Coord()

Coord: position transformation for normalized coordinates

CoordCartesian()

CoordCartesian: the identity coordinate system

CoordPolar()

CoordPolar: polar coordinate system

Facet()

Facet: split a plot into panels by data values

Geom()

Geom: geometric representation of computed values

GgnextPlot()

GgnextPlot: the complete plot specification

Labels()

Labels: plot title block and axis/legend titles

Layer()

Layer: one geom + stat + data/mapping overrides

Scale()

Scale: map data values onto a normalized visual range

ScaleContinuous()

ScaleContinuous: linear continuous positional scale

ScaleDiscrete()

ScaleDiscrete: positional scale for categorical data

Stat()

Stat: statistical transformation applied to layer data

aes()

Construct aesthetic mappings

animate()

Animate a plot over a transition variable

build_marks()

Build drawing primitives ("marks") from scaled aesthetic values

build_site()

Build the ggnext documentation site

compute_stat()

Apply a stat's transformation to evaluated aesthetic values

coord_cartesian()

Cartesian coordinate system

coord_flip()

Flipped Cartesian coordinates

coord_polar()

Polar coordinates

coord_transform()

Transform normalized positions through a coordinate system

facet_grid()

Lay panels out in a rows-by-columns grid

facet_wrap()

Wrap panels into a grid

geom_abline()

Sloped reference line

geom_ae_heatmap()

Adverse-event incidence heatmap

geom_area()

Area layer (filled to the zero baseline)

geom_bar()

Bar chart layer (counts per category)

geom_bland_altman()

Bland-Altman agreement plot

geom_blank()

Blank layer

geom_boxplot()

Boxplot layer

geom_bump()

Bump chart (rank over time)

geom_calibration()

Calibration curve

geom_chord()

Chord diagram

geom_col()

Column chart layer (bar heights from the data)

geom_confusion_matrix()

Confusion matrix

geom_consort()

CONSORT participant flow diagram

geom_count()

Counted scatter

geom_crossbar()

Crossbar: an interval box with the estimate marked

geom_cuminc()

Cumulative incidence (competing risks)

geom_curve()

Curved connector

geom_decision_boundary()

Decision-boundary region plot

geom_density()

Density curve layer

geom_dose_response()

Dose-response curve

geom_dotplot()

Dot plot

geom_dumbbell()

Dumbbell layer (before/after per category)

geom_embedding()

Embedding scatter (t-SNE / UMAP / PCA)

geom_errorbar()

Error bar layer (ymin to ymax with caps)

geom_errorbarh()

Horizontal error bars

geom_forecast_band()

Time-series forecast with confidence bands

geom_forest()

Forest plot

geom_freqpoly()

Frequency polygon

geom_function()

Curve of a function

geom_funnel()

Conversion funnel

geom_histogram()

Histogram layer

geom_hline()

Horizontal reference line

geom_jitter()

Jittered point layer (strip charts)

geom_km()

Kaplan-Meier survival curve layer

geom_label()

Text on a background plate

geom_learning_curve()

Learning curve

geom_lift_gain()

Lift and cumulative gain curves

geom_line()

Line layer (points connected in x order)

geom_linerange()

Vertical interval without a marker

geom_network()

Network (node-link) diagram

geom_parallel()

Parallel coordinates plot

geom_partial_dependence()

Partial dependence and ICE curves

geom_path()

Path layer (points connected in data order)

geom_point()

Scatter-plot layer: one point per observation

geom_pointrange()

Point-range layer (interval plus midpoint; forest-plot building block)

geom_polygon()

Polygons

geom_qq() geom_qq_line()

Quantile-quantile plot

geom_quantile()

Quantile regression lines

geom_radar()

Radar (spider / star) chart

geom_raster()

Raster

geom_rect()

Rectangles

geom_residual()

Residual diagnostic plot

geom_ribbon()

Ribbon layer (band between ymin and ymax)

geom_ridgeline()

Ridgeline plot (joyplot)

geom_roc()

ROC curve layer

geom_rug()

Marginal rug

geom_sankey() geom_alluvial()

Sankey / alluvial flow diagram

geom_segment()

Segment layer (x,y) to (xend,yend)

geom_shap()

SHAP value beeswarm

geom_shift()

Categorical shift plot

geom_silhouette()

Clustering silhouette plot

geom_smooth()

Smoothed trend layer

geom_spaghetti()

Individual longitudinal trajectories (spaghetti plot)

geom_spider_response()

Oncology spider plot

geom_spoke()

Spokes (vector field)

geom_step()

Step layer (staircase line)

geom_stream()

Streamgraph

geom_swimmer()

Swimmer plot

geom_text()

Text label layer

geom_tile()

Tile layer (heatmap cells)

geom_treemap()

Treemap

geom_upset()

UpSet plot (set intersections)

geom_violin()

Violin layer

geom_vline()

Vertical reference line

geom_waterfall()

Waterfall chart layer (running total of signed changes)

geom_waterfall_response()

RECIST best-response waterfall

ggnext()

Create a new ggnext plot

ggnext_logo()

Draw the ggnext hex sticker

ggtitle()

Set the plot title (and optionally the subtitle)

Interact() interact()

Add interactivity to a plot

labs()

Set plot and axis labels

lims()

Set both axis limits at once

plot_data()

Extract the exact data a plot draws

plot_size()

Set the output size

render()

Render a ggnext plot

scale_breaks()

Compute tick breaks for a trained scale

scale_color_gradient()

Set the continuous color gradient

scale_color_manual()

Set the discrete color palette

scale_map()

Map data values through a trained scale onto [0, 1]

scale_train()

Train a scale on data values

scale_x_continuous() scale_y_continuous()

Continuous scale for the x axis

scale_x_discrete()

Discrete positional scale for the x axis

scale_x_log10() scale_y_log10() scale_x_sqrt() scale_y_sqrt() scale_x_reverse() scale_y_reverse()

Log10 and square-root scales

scale_y_discrete()

Discrete positional scale for the y axis

stat_bin()

Bin observations (histogram counts)

stat_boxplot()

Five-number summary for boxplots

stat_count()

Count observations at each x

stat_density()

Kernel density estimate

stat_identity()

Identity statistical transformation

stat_jitter()

Jitter positions for strip charts

stat_km()

Kaplan-Meier survival estimate

stat_roc()

Empirical ROC curve

stat_smooth()

Fitted trend line with confidence band

stat_waterfall()

Running totals for waterfall charts

stat_ydensity()

Mirrored y-density for violins

Theme() theme()

Customize theme settings

theme_classic()

Classic theme: white panel, black axes, no gridlines

theme_dark()

Dark theme

theme_ggnext()

The default ggnext theme

theme_minimal()

Minimal theme: no panel fill, light grey gridlines

theme_modern()

Modern theme: airy, high-contrast, horizontal rules only

theme_void()

Void theme: data only, no chrome at all

write_plot_data()

Write the exact plot data to CSV

xlab()

Set the x axis title

xlim() ylim()

Set continuous axis limits

ylab()

Set the y axis title