Skip to contents

Plot Construction

plotit()
Initialize a plotit object
encode()
Create aesthetic mapping

Geometric Layers

Add visual marks to your plot.

mark_area()
Area layer
mark_bar()
Bar layer
mark_beeswarm()
Beeswarm plot layer
mark_boxplot()
Boxplot layer
mark_chord()
Chord diagram layer
mark_corr()
Correlation matrix heatmap
mark_density()
Density layer
mark_density_2d()
2D density contour layer
mark_dumbbell()
Dumbbell comparison chart layer
mark_errorbar()
Error bar layer
mark_hex()
Hexagonal heatmap layer
mark_histogram()
Histogram layer
mark_line()
Line layer
mark_lollipop()
Lollipop chart layer
mark_map()
Map layer
mark_network()
Network / force-directed graph layer
mark_path()
Path layer
mark_point()
Point layer
mark_polygon()
Polygon layer
mark_rect()
Rectangle layer
mark_rule()
Reference line / segment layer
mark_sankey()
Sankey flow diagram layer
mark_significance()
Significance annotation layer
mark_smooth()
Smoothed conditional mean layer
mark_text()
Text layer
mark_treemap()
Treemap layer
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_shape()
Shape scale
scale_size()
Size scale
scale_x()
X-axis position scale
scale_y()
Y-axis position scale

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)
style_default()
Apply the default plotit theme (convenience wrapper for style())

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