Skip to contents

Plot Construction

plotit()
Initialize a plotit object
encode()
Create aesthetic mapping
`+`(<plotit>)
Add a ggplot2 component to a plotit object

Geometric Layers

Add visual marks to your plot.

mark_area()
Area layer
mark_bar()
Bar layer
mark_beeswarm()
Beeswarm plot layer
mark_bin2d()
2D binned heatmap layer
mark_boxplot()
Boxplot layer
mark_chord()
Chord diagram layer (sugar)
mark_contour()
Contour layer for 2D scalar fields
mark_corr()
Correlation matrix heatmap (sugar)
mark_count()
Count layer (overlap-aware points)
mark_curve()
Curved link layer
mark_density()
Density layer
mark_density_2d()
2D density contour layer
mark_dumbbell()
Dumbbell comparison chart layer
mark_ecdf()
Empirical CDF layer
mark_errorbar()
Error bar / interval layer
mark_forest()
Forest plot layer (estimate + interval)
mark_heatmap()
Matrix heatmap layer (sugar)
mark_hex()
Hexagonal heatmap layer
mark_histogram()
Histogram layer
mark_label()
Label layer
mark_line()
Line layer
mark_lollipop()
Lollipop chart layer
mark_map()
Map layer
mark_network()
Network / force-directed graph layer (sugar)
mark_path()
Path layer
mark_point()
Point layer
mark_polygon()
Polygon layer
mark_qq()
Quantile-quantile points layer
mark_qq_line()
Quantile-quantile reference line layer
mark_rect()
Rectangle layer
mark_rug()
Rug / tick layer
mark_rule()
Reference line / segment layer
mark_sankey()
Sankey flow diagram layer (sugar)
mark_significance()
Significance annotation layer
mark_smooth()
Smoothed conditional mean layer
mark_spoke()
Spoke layer
mark_step()
Step layer
mark_text()
Text layer
mark_treemap()
Treemap layer (sugar)
mark_violin()
Violin layer

Scales

Control how data maps to visual properties.

scale_alpha()
Alpha (transparency) scale
scale_color()
Color scale
scale_fill()
Fill scale
scale_linetype()
Linetype scale
scale_radius()
Radius scale (area-proportional bubble size)
scale_shape()
Shape scale
scale_size()
Size scale
scale_x()
X-axis position scale
scale_y()
Y-axis position scale

Graph Data & Layout

Build relational graphs and compute layouts (Vega-style data transforms).

as_graph()
Convert relational data to a plotit graph
layout_chord()
Chord layout
layout_circle()
Circular layout
layout_dendrogram()
Dendrogram layout
layout_force()
Force-directed layout
layout_sankey()
Sankey layout
layout_tree()
Tree layout
layout_treemap()
Treemap layout

Labels

Set titles, axis labels, and legend text.

label_axis()
Generic for setting axis titles
label_caption()
Generic for setting plot caption
label_legend()
Generic for setting legend title(s)
label_subtitle()
Generic for setting plot subtitle
label_title()
Generic for setting plot title

Coordinate Systems

Transform the coordinate space.

project_cartesian()
Cartesian coordinate system
project_map()
Map coordinate system
project_parallel()
Parallel coordinates
project_polar()
Polar / radial coordinate system

Facets

Split data into subplots.

split_grid()
Generic for grid facets
split_wrap()
Generic for wrapping facets

Composition

Combine multiple plots into layouts.

compose_grid()
Assemble multiple plots into a grid layout
compose_inset()
Overlay an inset plot on a base plot
compose_marginal()
Scatter plot with marginal distributions

Theme

Style your plots with built-in or custom themes.

style()
Modify plot theme (aligns with ggplot2::theme)

Export

Render and save your plots to files.

export()
Export a plotit object to a file

Customization

Extend plotit with custom marks and themes.

make_mark()
Create a custom mark
make_theme()
Create a reusable theme preset