
Package index
Building a plot
Start a plot from a data frame, an sf object, or an igraph graph, then render it or write it to a file.
-
vplot() - Start a plot specification
-
vgraph() - Start a graph (network) plot
-
render_plot() - Render a plot to a file
-
PlotSpec() - The plot specification
-
mark_point()mark_line()mark_rule()mark_bar() - Add marks to a plot
-
mark_area()mark_ribbon()mark_step() - Area, ribbon, and step marks
-
mark_segment() - Segment mark
-
mark_boxplot()mark_errorbar()mark_linerange()mark_summary() - Boxplot, error bar, and summary marks
-
mark_violin()mark_ridgeline()mark_dotplot() - Density-shape marks
-
mark_histogram()mark_smooth() - Statistical marks
-
mark_ecdf()mark_rug()mark_qq()mark_qq_line() - Distribution marks
-
mark_tile()mark_raster()mark_bin2d()mark_density()mark_hex() - Heatmap marks
-
mark_contour()mark_contour_filled() - 2-D density contours
-
mark_text()mark_label() - Text marks
-
mark_pie()mark_donut() - Pie and donut charts
-
mark_datashade() - Datashade a large point cloud
-
mark_sf() - Draw simple-feature (sf) geometries
-
mark_edges()mark_nodes()mark_node_text() - Network (graph) marks
-
scale_edge_width() - Edge-width scale
-
scale_x_continuous()scale_y_continuous()scale_x_discrete()scale_y_discrete() - Position scales
-
scale_x_binned()scale_y_binned() - Binned position scales
-
scale_x_date()scale_y_date()scale_x_datetime()scale_y_datetime()scale_x_time()scale_y_time() - Date and time position scales
-
scale_color_continuous()scale_color_discrete()scale_color_manual()scale_color_gradient()scale_fill_continuous()scale_fill_discrete()scale_fill_manual()scale_fill_gradient()scale_colour_continuous()scale_colour_discrete()scale_colour_manual()scale_colour_gradient() - Colour scales
-
scale_fill_binned()scale_color_binned() - Binned (classed) colour scales
-
scale_shape() - Shape scale
-
scale_size() - Size scale
-
scale_alpha()scale_alpha_continuous() - Alpha (opacity) scale
-
scale_linetype()scale_linetype_discrete() - Line-type scale
-
scale_color_identity()scale_fill_identity()scale_colour_identity()scale_size_identity()scale_shape_identity()scale_alpha_identity()scale_linetype_identity() - Identity scales
-
lims()xlim()ylim() - Set scale limits with a shortcut
-
guides()guide_none()guide_legend() - Control a scale's legend
-
resolve_scale() - Resolve scales as shared or independent across panels
-
after_stat() - Map an aesthetic to a statistic computed by a stat
-
coord_cartesian()coord_flip()coord_fixed()coord_equal() - Coordinate systems
-
coord_trans() - Transformed coordinate system
-
coord_polar() - Polar coordinates
-
coord_sf() - Map coordinate system
-
facet_wrap()facet_grid() - Facet a plot into a grid of panels
-
add_marginal() - Add marginal distributions to a plot
-
concat()wrap_plots()hconcat()vconcat() - Arrange plots side by side
-
inset() - Overlay a plot as an inset
-
plot_spacer() - Reserve an empty cell in a composition
-
area() - Define a layout area for
design = -
repeat_() - Repeat a view across fields
-
compose_annotation() - Annotate a composition
-
theme_gray()theme_minimal()theme_bw()theme_classic()theme_void()theme_cyberpunk()theme()set_theme() - Plot themes
-
theme_sketch() - Hand-drawn plot theme
-
element_text()element_line()element_rect()element_blank() - Theme elements
-
labs() - Set plot titles and axis/legend labels
-
annotate() - Add a one-off annotation
-
md() - Rich-text labels
-
glow() - Neon glow layer effect
-
shadow() - Shadow layer effect
-
outline() - Outline (halo) layer effect
-
sketch() - Hand-drawn ("sketch") rendering
-
linear_gradient()radial_gradient() - Gradient fill paints
Accessibility and provenance
Attach a text alternative for screen readers, or inspect how a spec compiled into a scene.
-
plot_alt() - Text alternative (alt text) for a plot
-
plot_provenance() - Inspect the compiled-scene provenance of a plot
-
vellumplotvellumplot-package - vellumplot: A Grammar of Graphics on the 'vellum' Backend