A Next-Generation Grammar of Graphics


[Up] [Top]

Documentation for package ‘ggnext’ version 0.1.0

Help Pages

A B C F G I L P R S T V W X Y

-- A --

aes Construct aesthetic mappings
animate Animate a plot over a transition variable
Animation Animation: a transition spec bound to a data variable

-- B --

build_marks Build drawing primitives ("marks") from scaled aesthetic values
build_site Build the ggnext documentation site

-- C --

ColorScale ColorScale: palette override for the color aesthetic
compute_stat Apply a stat's transformation to evaluated aesthetic values
Coord Coord: position transformation for normalized coordinates
CoordCartesian CoordCartesian: the identity coordinate system
CoordPolar CoordPolar: polar coordinate system
coord_cartesian Cartesian coordinate system
coord_flip Flipped Cartesian coordinates
coord_polar Polar coordinates
coord_transform Transform normalized positions through a coordinate system

-- F --

Facet Facet: split a plot into panels by data values
facet_grid Lay panels out in a rows-by-columns grid
facet_wrap Wrap panels into a grid

-- G --

Geom Geom: geometric representation of computed values
geom_abline Sloped reference line
geom_ae_heatmap Adverse-event incidence heatmap
geom_alluvial Alluvial diagram (ordered, repeated-measures categorical flow)
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_concordance Concordance / agreement plot
geom_confusion_matrix Confusion matrix
geom_consort CONSORT participant flow diagram
geom_cor Correlation matrix heatmap
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_dendrogram Hierarchical clustering dendrogram
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_hr Hazard ratio forest plot (Cox proportional hazards)
geom_importance Feature importance plot
geom_jitter Jittered point layer (strip charts)
geom_km Kaplan-Meier survival curve layer
geom_km_risktable Number-at-risk table for a Kaplan-Meier curve
geom_label Text on a background plate
geom_learning_curve Learning curve
geom_leverage Leverage / Cook's distance plot
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_missing_pattern Missing-data pattern plot
geom_nelson_aalen Nelson-Aalen cumulative hazard curve layer
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_pr Precision-recall curve
geom_qq Quantile-quantile plot
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 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_smd Baseline covariate balance (standardized mean difference) 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
GgnextPlot GgnextPlot: the complete plot specification
ggnext_logo Draw the ggnext hex sticker
ggtitle Set the plot title (and optionally the subtitle)

-- I --

Interact Add interactivity to a plot
interact Add interactivity to a plot

-- L --

Labels Labels: plot title block and axis/legend titles
labs Set plot and axis labels
Layer Layer: one geom + stat + data/mapping overrides
lims Set both axis limits at once

-- P --

plot_check Print a plot's validation findings and return the plot, unchanged
plot_data Extract the exact data a plot draws
plot_size Set the output size

-- R --

render Render a ggnext plot

-- S --

Scale Scale: map data values onto a normalized visual range
ScaleContinuous ScaleContinuous: linear continuous positional scale
ScaleDiscrete ScaleDiscrete: positional scale for categorical data
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 Continuous scale for the x axis
scale_x_discrete Discrete positional scale for the x axis
scale_x_log10 Log10 and square-root scales
scale_x_reverse Log10 and square-root scales
scale_x_sqrt Log10 and square-root scales
scale_y_continuous Continuous scale for the x axis
scale_y_discrete Discrete positional scale for the y axis
scale_y_log10 Log10 and square-root scales
scale_y_reverse Log10 and square-root scales
scale_y_sqrt Log10 and square-root scales
Stat Stat: statistical transformation applied to layer data
stat_bin Bin observations (histogram counts)
stat_boxplot Five-number summary for boxplots
stat_count Count observations at each x
stat_coxph Hazard ratios from a Cox proportional-hazards model
stat_density Kernel density estimate
stat_identity Identity statistical transformation
stat_jitter Jitter positions for strip charts
stat_km Kaplan-Meier survival estimate
stat_km_risktable Number-at-risk table for a Kaplan-Meier curve
stat_nelson_aalen Nelson-Aalen cumulative hazard estimate
stat_pr Empirical precision-recall curve
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

-- T --

Theme Customize theme settings
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

-- V --

validate_plot Check a plot for common statistical-graphics mistakes

-- W --

write_plot_data Write the exact plot data to CSV

-- X --

xlab Set the x axis title
xlim Set continuous axis limits

-- Y --

ylab Set the y axis title
ylim Set continuous axis limits