Skip to contents

All functions

area_unit_options
Area units (vector)
as_asp()
Convert character string, page name, or page data.frame to numeric aspect ratio
as_page()
Coerce a character or named vector to a page data.frame using get_page_size() or make_page_size()
as_unit() as_unit_type() convert_unit_type() is_unit_type() is_same_unit_type()
Helper functions for grid units
card_sizes
Standard card sizes
convert_dist_scale()
Convert distance from scale to actual units
convert_dist_units()
Convert distance (and area) values between different units
dist_unit_options
Distance units (vector)
dist_units
Distance units (data frame)
get_page_size() get_paper() get_card() get_page_dims() convert_page_units()
Get a paper or card size based on name, dimensions, orientation, or type
get_scale()
Get standard scales and convert to scale distances
get_social_size()
Get social media image size to match platform and format
ggsave_ext() ggsave_social() map_ggsave_ext()
Save a ggplot2 plot to file and update file EXIF metadata
grid_units
Grid units (vector)
inset_page_element()
Create an inset with page size dimensions be added on top of the previous plot
is_dist_units() get_dist_units() as_dist_units() is_same_units()
General utility functions for working with distance units objects
make_contact_sheets() experimental
Use magick::image_ggplot() to make contact sheets for images
make_page_size()
Make a page size data frame
margins() is_margin() margin() get_margin()
Specify the margins of a page or element
page_extras
Extra reference data for page layouts
page_layout()
Use patchwork to lay out a list of fixed aspect plots on a larger page
page_to_layout()
Convert a page size data.frame to a Grid layout object
page_to_viewport()
Convert a page data.frame to a viewport class object
paper_sizes
Standard paper and image sizes
plot_cards()
Use ggplot to plot for one or more cards
print_to_page() print_to_page_layout() experimental
Explicitly draw plot using dimensions from page data.frame or list
set_page_dims() set_page_orientation() set_page_asp()
Set page data.frame dimensions, orientation, or aspect ratio
set_page_margin()
Set margins for page data.frame (adding body width, height, and asp)
standard_scales
Standard map, architectural, and engineering scales
theme_page()
Modify plot aspect ratio to match a page size